You are not logged in.

#1 2011-03-26 00:54:50

jlacroix
Member
Registered: 2009-08-16
Posts: 576

[SOLVED] Pacman Claims All Packages Are Corrupt

Hello everyone, I am hoping to figure out a way to save my system, but if I have to reinstall everything to fix it, then so be it, but I'd rather not.

Basically, when I go to install *any* package, I get this:

error: failed to commit transaction (invalid or corrupted package)

I've been having this problem (and other problems) for several days. I have been frantically Googling for a solution, and trying every solution I can find. I think I've honestly made everything worse by troubleshooting this myself, as I'm not even sure what all I've done at this point. I know I've seen Google results instructing me to mess with symlinks, force reinstalling packages from archives, and who knows what else.

I have tried converting to the new database format, using the new pacman.conf, and several other things.

I have a feeling that this problem has something to do with liblzma or xz, because I remember some instructions telling me to mess with symlinks and force installing those packages.

Any last minute ideas before I clear my hard drive?

Edit: Marking this as solved, it appears I've borked my system beyond repair.

Last edited by jlacroix (2011-03-27 15:13:50)

Offline

#2 2011-03-26 01:10:20

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

Re: [SOLVED] Pacman Claims All Packages Are Corrupt

pacman -S libarchive xz

Then remove the symlink you created:
rm /usr/lib/liblzma.so.1  (or .0)

And never create symlinks to missing libraries again.

Online

#3 2011-03-26 01:16:28

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Pacman Claims All Packages Are Corrupt

Allan wrote:

pacman -S libarchive xz

Then remove the symlink you created:
rm /usr/lib/liblzma.so.1  (or .0)

And never create symlinks to missing libraries again.

I won't do that ever again, I promise!

But now after doing what you said, I get this:

pacman: error while loading shared libraries: liblzma.so.0: cannot open shared object file: No such file or directory

Offline

#4 2011-03-26 01:20:46

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

Re: [SOLVED] Pacman Claims All Packages Are Corrupt

Did you run the "pacman -S libarchive xz" command before removing that symlink?

Online

#5 2011-03-26 01:32:30

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Pacman Claims All Packages Are Corrupt

Allan wrote:

Did you run the "pacman -S libarchive xz" command before removing that symlink?

Correct.

Offline

#6 2011-03-26 16:18:23

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Pacman Claims All Packages Are Corrupt

pacman -Sy pacman libarchive xz
And make sure your mirror is actually up to date.

Last edited by Mr.Elendig (2011-03-26 16:18:49)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2011-03-26 16:22:07

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Pacman Claims All Packages Are Corrupt

Mr.Elendig wrote:

pacman -Sy pacman libarchive xz
And make sure your mirror is actually up to date.

Thanks, but I cannot do that, because if I run the pacman command, I now get the error message in post #3. The problem is now worse. (My mirrors were up to date beforehand, though).

Edit: I force reinstalled pacman per this post:
https://bbs.archlinux.org/viewtopic.php … 17#p907617

Now I get this every time I run pacman:

pacman: error while loading shared libraries: libfetch.so: cannot open shared object file: No such file or directory

Last edited by jlacroix (2011-03-26 16:26:38)

Offline

#8 2011-03-26 17:10:00

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] Pacman Claims All Packages Are Corrupt

Try the same tar magic again with libfetch and check for additional symlinks you might have forgotten about.

Offline

#9 2011-03-26 17:23:17

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Pacman Claims All Packages Are Corrupt

Ramses de Norre wrote:

Try the same tar magic again with libfetch and check for additional symlinks you might have forgotten about.

I did as you suggested, and it has the exact same error. sad

Offline

#10 2011-03-27 15:13:18

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Pacman Claims All Packages Are Corrupt

I am just going to wipe my drive and start my computer over. I'll mark this as solved.

Offline

#11 2012-04-04 22:00:47

songandsilence
Member
From: Burlingame, KS, USA
Registered: 2010-12-01
Posts: 28

Re: [SOLVED] Pacman Claims All Packages Are Corrupt

Wiping drive != solved.

Someone unmark this.

Offline

#12 2012-04-05 11:57:25

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Pacman Claims All Packages Are Corrupt


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB