Today, when I tried to use yaourt
to install some software, the following error happened:
......
package-query: error while loading shared libraries: libalpm.so.10: cannot open shared object file: No such file or directory
The root cause is the libalpm
in system is already libalpm.so.11
:
$ ls -lt /usr/lib/libalpm.so*
lrwxrwxrwx 1 root root 17 Jun 1 00:32 /usr/lib/libalpm.so -> libalpm.so.11.0.0
lrwxrwxrwx 1 root root 17 Jun 1 00:32 /usr/lib/libalpm.so.11 -> libalpm.so.11.0.0
-rwxr-xr-x 1 root root 223616 Jun 1 00:32 /usr/lib/libalpm.so.11.0.0
But the package-query
is still searching libalpm.so.10
:
$ ldd /usr/bin/package-query
linux-vdso.so.1 (0x00007fffb1d8d000)
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007f4baee32000)
libyajl.so.2 => /usr/lib/libyajl.so.2 (0x00007f4baec28000)
libalpm.so.10 => not found
libc.so.6 => /usr/lib/libc.so.6 (0x00007f4bae86c000)
libnghttp2.so.14 => /usr/lib/libnghttp2.so.14 (0x00007f4bae647000)
......
The solution is removing yaourt
and package-query
, and re-intall them:
$ sudo pacman -Rn yaourt package-query
$ sudo pacman -S fakeroot
$ git clone https://aur.archlinux.org/package-query.git
$ cd package-query
$ makepkg -si
$ git clone https://aur.archlinux.org/yaourt.git
$ cd yaourt
$ makepkg -si
That’s it!
Thanks, it worked perfectly!
Worked for me! Awesome!
PS: instead of fakeroot, I just chown’d the git clone directories
I also had to
pacman -S pkgconf
to get package-query to install in the first place.
Thanks a lot!
Just wanted to thank you for that post. That’s exactly what helped me out 🙂
Thank you for this. Works for me without any trouble.
Thanks a lot!!
Thanks A Lot!!! Do you know if there’s a way to make yaourt update itself?
Sorry, never tried it before.:-)
Thanks A Lot! Thanks A Lot!
Thank you
That helped, thank you very much for your efforts
Note that should be no need to uninstall yaourt and package-query before reinstalling them.
If you happen to have the Git repositories already on your system, then you can rebuild them by running ‘git pull’ inside and then running ‘makepkg -sif’.
thanks mate
Thaaanks. Really helpful
Thanks a lot !!!! it’s useful.
Thanks! Fixed for libalpm.so.11!