You are not logged in.
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
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
I would suggest you copy /home and edited files in /etc to a usb and reinstall.
This is why one have backups you know
Offline