You are not logged in.
During the latest update, pacman came up with an error saying bzip2 was corrupt. So I tried to reinstall it, but pacman complained on some bzip2 file dependencies which existed. So I tried to remove bzip2 with pacman, which didn't work because of the same dependencies. This is where I screwed up. I used mc to manually remove all the files pacman was complaining about to be able to install bzip2 again. What I didn't know was that pacman depend on bzip2, so I kind of cut off the branch I was sitting on. This is my position: I have a fully working system, except for a missing bzip2 package which makes it impossible to run pacman.
Can anyone tell me if I can recover from this?
Last edited by thunderogg (2009-03-25 11:01:27)
Offline
Probably the mirror was not in sync or corrupted or still syncing... doesn't matter now.
Try to download the package directly from another mirror, or use this link:
http://ftp.iasi.roedu.net/mirrors/archl … pkg.tar.gz
after the download finishes unpack the package and try to move every file where it belongs, there are not very many files to put in place
here pacman -Ql bzip2
bzip2 /bin/
bzip2 /bin/bunzip2
bzip2 /bin/bzcat
bzip2 /bin/bzip2
bzip2 /bin/bzip2recover
bzip2 /lib/
bzip2 /lib/libbz2.so
bzip2 /lib/libbz2.so.1
bzip2 /lib/libbz2.so.1.0
bzip2 /lib/libbz2.so.1.0.4
bzip2 /usr/
bzip2 /usr/include/
bzip2 /usr/include/bzlib.h
bzip2 /usr/lib/
bzip2 /usr/lib/libbz2.a
bzip2 /usr/lib/libbz2.so
bzip2 /usr/share/
bzip2 /usr/share/licenses/
bzip2 /usr/share/licenses/bzip2/
bzip2 /usr/share/licenses/bzip2/LICENSE
bzip2 /usr/share/man/
bzip2 /usr/share/man/man1/
bzip2 /usr/share/man/man1/bunzip2.1.gz
bzip2 /usr/share/man/man1/bzcat.1.gz
bzip2 /usr/share/man/man1/bzip2.1.gz
bzip2 /usr/share/man/man1/bzip2recover.1.gz
after that reinstall bzip2 from pacman, force if necessary
Last edited by silvik (2009-03-25 10:48:07)
Offline
Downloaded and ran "pacman -U bzip2-1.0.5-4-i686.pkg.tar.gz". This is what I get:
pacman: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
"libbz2.so.1.0" was , of course, one of the file dependencies I deleted. Obviously a stupid thing to do!
Offline
i corrected my previous post, obviously i was wrong
maybe it works now
Last edited by silvik (2009-03-25 10:48:21)
Offline
Download bzip2, as root extract the packages in / using "tar -xf <pkg>". Clean up hidden files (.PKGINFO, .INSTALL, .CHANGELOG - might not all be present). Then "pacman -Syf bzip2".
Online
Thanks a lot Allan and silvik!
Download bzip2, as root extract the packages in / using "tar -xf <pkg>". Clean up hidden files (.PKGINFO, .INSTALL, .CHANGELOG - might not all be present). Then "pacman -Syf bzip2".
Beautiful! It worked! Thanks for saving me. The support in this forum is really the best!
Last edited by thunderogg (2009-03-25 11:00:47)
Offline