You are not logged in.

#1 2009-03-25 09:32:21

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

pacman: bzip2 corrupted. [SOLVED]

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. hmm
Can anyone tell me if I can recover from this?

Last edited by thunderogg (2009-03-25 11:01:27)

Offline

#2 2009-03-25 10:39:09

silvik
Member
From: Bucharest/Romania
Registered: 2006-11-08
Posts: 110

Re: pacman: bzip2 corrupted. [SOLVED]

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

#3 2009-03-25 10:45:11

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: pacman: bzip2 corrupted. [SOLVED]

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

#4 2009-03-25 10:47:08

silvik
Member
From: Bucharest/Romania
Registered: 2006-11-08
Posts: 110

Re: pacman: bzip2 corrupted. [SOLVED]

i corrected my previous post, obviously i was wrong
maybe it works now

Last edited by silvik (2009-03-25 10:48:21)

Offline

#5 2009-03-25 10:49:59

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: pacman: bzip2 corrupted. [SOLVED]

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".

Offline

#6 2009-03-25 10:58:59

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: pacman: bzip2 corrupted. [SOLVED]

Thanks a lot Allan and silvik!

Allan wrote:

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! smilebig_smile

Last edited by thunderogg (2009-03-25 11:00:47)

Offline

Board footer

Powered by FluxBB