You are not logged in.
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
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
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
Did you run the "pacman -S libarchive xz" command before removing that symlink?
Online
Did you run the "pacman -S libarchive xz" command before removing that symlink?
Correct.
Offline
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
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
Try the same tar magic again with libfetch and check for additional symlinks you might have forgotten about.
Offline
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.
Offline
I am just going to wipe my drive and start my computer over. I'll mark this as solved.
Offline
Wiping drive != solved.
Someone unmark this.
Offline
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline