You are not logged in.

#1 2012-01-16 21:30:01

fettouhi
Member
Registered: 2007-05-07
Posts: 772

[SOLVED] Updated libarchive but not pacman

I just saw that pacman 4.0.1 hit [core] but the updated packagekit packages weren't available, so i held it back libarchive has been updated and now pacman won't run? How do I fix this?

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

Last edited by fettouhi (2012-01-16 22:37:34)

Offline

#2 2012-01-16 22:09:29

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

Re: [SOLVED] Updated libarchive but not pacman

boot install cd, mount your partions to /mnt, pacman -r /mnt -Syu pacman libarchive (-Rs packagekit first if you haven't)

Last edited by Mr.Elendig (2012-01-16 22:10:02)


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

Offline

#3 2012-01-16 22:10:36

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [SOLVED] Updated libarchive but not pacman

Download the latest libarchive 2 package from ARM. Unpack it and copy libarchive.so.2 into /usr/lib. Don't worry, you won't be overwriting any files with this. But you will get a working pacman. Use it to upgrade and this time don't hold any packages back. After upgrading pacman, you can delete /usr/lib/libarchive.so.2

Edit: Or do what Mr.Elendig says smile

Last edited by Gusar (2012-01-16 22:11:34)

Offline

#4 2012-01-16 22:23:29

fettouhi
Member
Registered: 2007-05-07
Posts: 772

Re: [SOLVED] Updated libarchive but not pacman

Thanks for the tips. I did as Gusar suggested, since it was easier and now pacman works again but I get an error

[root@andre ~]# pacman -S packagekit
advarsel: packagekit-0.6.19-5 er opdateret - springer over
løser afhængigheder...
kigger efter mellemkonflikter...

Mål (1): packagekit-0.6.19-5

Total Installed Size:   6,43 MiB
Net Upgrade Size:       0,00 MiB

Fortsæt med installation? [J/n] J
(1/1) tjekker pakkeintegritet                      [############] 100%
fejl: packagekit: key "AF7EF7873CFD4BB6" is unknown
fejl: key "AF7EF7873CFD4BB6" could not be looked up remotely
fejl: kunne ikke indsende (commit) transaktion (invalid or corrupted package (PGP signature))
Der opstod fejl, ingen pakker blev opgraderet.

I did the pacman-key --init after updating pacman.

Offline

#5 2012-01-16 22:29:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Updated libarchive but not pacman

Edit pacman.conf and uncomment SigLevel = Optional TrustAll

Offline

#6 2012-01-16 22:37:18

fettouhi
Member
Registered: 2007-05-07
Posts: 772

Re: [SOLVED] Updated libarchive but not pacman

Ah didn't see those changes in pacman.conf. Added those changes and everything is ok! Many thanks!

Last edited by fettouhi (2012-01-16 22:38:18)

Offline

Board footer

Powered by FluxBB