You are not logged in.

#1 2010-09-16 18:02:07

prasadr
Member
Registered: 2009-06-23
Posts: 7

after "#rm -rf /usr", pacman rejects *.xz packages as corrupt

Hi All,

I accidentally deleted /usr. now my system is up but I know once it is down, hell will break loose.

To recover from this situation I did the following:
1. used the archlinux boot up cd to bring pacman(but it was an old one did not support .xz format)
2. got the "bootstrapper" pacman and then upgraded to the latest pacman (version v3.4.1 -libalpm v5.0.1)
3. now I am able to install all the .gz package using "pacman -S ..." command

4. however, the when I try to instal a .xz package (ex: pacman -S gvim), then I am getting the following error:


checking package integrity...
error: error whie reading package /var/cache/pacman/pkg/gvim-7.3.3-1-i686.pkg.tar.xz: Unrecognized archive format: Invalid or incomplete multibyte or wide character
error: failed to commit transaction (invalid or corrupted package)
gvim-7.3.3-1-i686.pkg.tar.xz is invalid or corrupted
Errors occurred, no packages were upgraded.

5. here is the error I get, when i try to instal it using the -U switch ( pacman -U /path/to/mypkgfolder/gvim-7.3.3-1-i686.pkg.tar.xz )
error: error whie reading package /var/cache/pacman/pkg/gvim-7.3.3-1-i686.pkg.tar.xz: Unrecognized archive format: Invalid or incomplete multibyte or wide character
error: '/var/cache/pacman/pkg/gvim-7.3.3-1-i686.pkg.tar.xz': libarchive error

I  re-installed libarchive but that did not help.

Any clues are welcome.

Offline

#2 2010-09-16 18:15:34

prasadr
Member
Registered: 2009-06-23
Posts: 7

Re: after "#rm -rf /usr", pacman rejects *.xz packages as corrupt

one more step which I have already tried:
6. bsdtar -tf /var/cache/pacman/pkg/gvim-7.3.3-1-i686.pkg.tar.xz

shows the list properly. however bsdtar -xf /var/cache/pacman/pkg/gvim-7.3.3-1-i686.pkg.tar.xz gives the following error:

bsdtar: Failed to set default locale

Offline

#3 2010-09-16 18:45:42

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: after "#rm -rf /usr", pacman rejects *.xz packages as corrupt

I would suggest you copy /home and edited files in /etc to a usb and reinstall.

This is why one have backups you know wink

Offline

Board footer

Powered by FluxBB