yay: error while loading shared libraries: libalpm.so.11: cannot open shared object file: No such file or directory

Created on 23 Oct 2019  路  8Comments  路  Source: Jguer/yay

I am having the following issue, when running yay:

yay: error while loading shared libraries: libalpm.so.11: cannot open shared object file: No such file or directory

How should I fix this?

Resolved Question

Most helpful comment

You can use the initial installation method of yay, @gouvinb has it well summarized if you want to understand it https://github.com/Jguer/yay/issues/1084#issuecomment-545337382

This can be applied to your prefered flavor yay, yay-gitor yay-bin.

yay-bin

# Remove yay for update 
sudo pacman -R yay
# Install yay from git
cd /tmp
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
cd ..
# clean /tmp folder
rm -rf yay-bin

yay

# Remove yay for update 
sudo pacman -R yay
# Install yay from git
cd /tmp
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
# clean /tmp folder
rm -rf yay

EDIT: corrected yay -R
EDIT2: Applies only to Arch Linux and not derivatives such as Manjaro.

All 8 comments

You can use the initial installation method of yay, @gouvinb has it well summarized if you want to understand it https://github.com/Jguer/yay/issues/1084#issuecomment-545337382

This can be applied to your prefered flavor yay, yay-gitor yay-bin.

yay-bin

# Remove yay for update 
sudo pacman -R yay
# Install yay from git
cd /tmp
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
cd ..
# clean /tmp folder
rm -rf yay-bin

yay

# Remove yay for update 
sudo pacman -R yay
# Install yay from git
cd /tmp
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
# clean /tmp folder
rm -rf yay

EDIT: corrected yay -R
EDIT2: Applies only to Arch Linux and not derivatives such as Manjaro.

You cannot do "yay -R yay" because that requires yay, which does not work ;).

sudo pacman -R yay or yay-bin/yay-git

You're right :smile: , I've fixed it and I'm glad you got it fixed as well

I can re-install it in the way described, but when I try to run yay I still get this error:

yay: error while loading shared libraries: libalpm.so.12: cannot open shared object file: No such file or directory

(note the version 12 number)

Did you maybe leave out the crucial detail that you're running manjaro or other derivative and hence are on an old pacman version?

Did you maybe leave out the crucial detail that you're running manjaro or other derivative and hence are on an old pacman version?

Yeah, in the new issue I created, I did mention it.

try reinstalling yay using git repo.

sudo pacman -Rnsc yay
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg
sudo pacman -U yay-9.4.2-1-x86_64.pkg.tar.xz // <- replace with your file name

That's it :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ixevix picture ixevix  路  3Comments

makeworld-the-better-one picture makeworld-the-better-one  路  3Comments

Zeioth picture Zeioth  路  3Comments

drrlvn picture drrlvn  路  4Comments

ricochet1k picture ricochet1k  路  4Comments