Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qazip opened this issue Oct 23, 2019 · 31 comments
Labels
Status: Resolved Issue or question has been answered or fixed successfully Type: Question

Comments

@qazip
Copy link

qazip commented Oct 23, 2019

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?

@Jguer
Copy link
Owner

Jguer commented Oct 23, 2019

You can use the initial installation method of yay, @gouvinb has it well summarized if you want to understand it #1084 (comment)

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.

@qazip
Copy link
Author

qazip commented Oct 23, 2019

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

@LinuxUserGD
Copy link

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

@qazip qazip closed this as completed Oct 23, 2019
@Jguer
Copy link
Owner

Jguer commented Oct 23, 2019

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

@nivaca
Copy link

nivaca commented Oct 24, 2019

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)

@Morganamilo
Copy link
Contributor

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

@Jguer Jguer added Status: Resolved Issue or question has been answered or fixed successfully Type: Question labels Oct 24, 2019
@nivaca
Copy link

nivaca commented Oct 24, 2019

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.

@shyaminayesh
Copy link

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 👍

@JoveYu
Copy link

JoveYu commented Jun 1, 2021

you can use cached repo

cd ~/.cache/yay/yay
git pull
makepkg -si

@jasek5
Copy link

jasek5 commented Jun 1, 2021

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

For me it actually worked :D

@nicktindall
Copy link

nicktindall commented Jun 1, 2021

This started happening for me out of the blue yesterday, when I tried to follow the instructions here I got

:: yay-bin and pacman are in conflict (libalpm.so). Remove pacman? [y/N]

@RafaelAmauri
Copy link

This started happening for me out of the blue yesterday, when I tried to follow the instructions here I got

:: yay-bin and pacman are in conflict (libalpm.so). Remove pacman? [y/N]

It also started happening to me and the fix was to just run pacman -Rns yay and uninstall it.

Then I cloned the yay git repo and installed the package build. All's working now

@nicktindall
Copy link

nicktindall commented Jun 2, 2021

Interestingly manually installing yay works, but yay-bin says it conflicts with pacman

I think it's covered here https://aur.archlinux.org/packages/yay-bin/#pinned-808723

@krishicks
Copy link

I had to run makepkg -Cfsi to get it to rebuild properly.

  -C, --cleanbuild Remove $srcdir/ dir before building the package
  -f, --force      Overwrite existing package
  -s, --syncdeps   Install missing dependencies with pacman
  -i, --install    Install package after successful build

@Berkmann18
Copy link

Berkmann18 commented Jun 21, 2021

Doing @JoveYu's approach with @krishicks suggestion fixed it for me.
Thank you both!

@qiolol
Copy link

qiolol commented Jul 3, 2021

Same!

cd ~/.cache/yay/yay
git pull
makepkg -Cfsi

did the trick. ❤️

@joumaico
Copy link

You can use the initial installation method of yay, @gouvinb has it well summarized if you want to understand it #1084 (comment)

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.

thank you

@2793155371
Copy link

可以使用yay的初始安装方法,@gouvinb如果你想了解的话,总结得很好吗#1084(评论)

这可以应用于您喜欢的口味yayyay-gityay-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

# 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

编辑:更正yay -R EDIT2:仅适用于 Arch Linux,不适用于 Manjaro 等衍生版本。

thank you!

@M8850
Copy link

M8850 commented Mar 16, 2024

i get simliar error

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

when reinstaling yay accorging to instruction i get error:

==> Finished making: yay 12.3.3-3 (Sat 16 Mar 2024 09:19:07 AM CET)
==> Installing package yay with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (2)  New Version  Net Change

yay          12.3.3-3       8.49 MiB
yay-debug    12.3.3-3       3.43 MiB

Total Installed Size:  11.92 MiB

:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring                                                                                                 [----------------------------------------------------------------------------] 100%
(2/2) checking package integrity                                                                                               [----------------------------------------------------------------------------] 100%
(2/2) loading package files                                                                                                    [----------------------------------------------------------------------------] 100%
(2/2) checking for file conflicts                                                                                              [----------------------------------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
yay-debug: /usr/lib/debug/usr/bin/yay.debug exists in filesystem (owned by yay-git-debug)
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).

@M8850
Copy link

M8850 commented Mar 16, 2024

i get simliar error

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

when reinstaling yay accorging to instruction i get error:

==> Finished making: yay 12.3.3-3 (Sat 16 Mar 2024 09:19:07 AM CET)
==> Installing package yay with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (2)  New Version  Net Change

yay          12.3.3-3       8.49 MiB
yay-debug    12.3.3-3       3.43 MiB

Total Installed Size:  11.92 MiB

:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring                                                                                                 [----------------------------------------------------------------------------] 100%
(2/2) checking package integrity                                                                                               [----------------------------------------------------------------------------] 100%
(2/2) loading package files                                                                                                    [----------------------------------------------------------------------------] 100%
(2/2) checking for file conflicts                                                                                              [----------------------------------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
yay-debug: /usr/lib/debug/usr/bin/yay.debug exists in filesystem (owned by yay-git-debug)
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).

ok,
i needed to run

sudo pacman -Rns yay-git-debug

@dmaliog
Copy link

dmaliog commented Mar 16, 2024

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

You can fix the error simply by sudo pacman -Suy, pacman will update and the error will disappear.

@M8850
Copy link

M8850 commented Mar 16, 2024

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

You can fix the error simply by sudo pacman -Suy, pacman will update and the error will disappear.

i obv tried that and did not work. I had to reinstall yay like described

@BlueskyFR
Copy link

Happening again on Manjaro, all the above did not fix it :(

@M8850
Copy link

M8850 commented Mar 19, 2024

Happening again on Manjaro, all the above did not fix it :(

at which step it fails? have you uninstalled both yay and yay-debug?

@anwarsfaizul
Copy link

can confirm on archlinux.

@LinuxUserGD
Copy link

can confirm on archlinux.

Is it the same error message from 2019: "error while loading shared libraries: libalpm.so.11" when building yay-git from source, see #1087 (comment) ?

@anwarsfaizul
Copy link

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

@LinuxUserGD
Copy link

See #2393, symlinking with cd /usr/lib/ && ln -s libalpm.so.14 libalpm.so.13 might also work

@M8850
Copy link

M8850 commented Mar 20, 2024

1
sudo pacman -Rns yay yay-debug
2
reinstall yay according to instructions

where does it fail for you?

@bugb
Copy link

bugb commented Mar 20, 2024

See #2393, symlinking with cd /usr/lib/ && ln -s libalpm.so.14 libalpm.so.13 might also work

Thanks, it works for me!

@callumjg
Copy link

callumjg commented Apr 4, 2024

See #2393, symlinking with cd /usr/lib/ && ln -s libalpm.so.14 libalpm.so.13 might also work

This worked briefly until I tried installing something that presumably needed a breaking change from v14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Resolved Issue or question has been answered or fixed successfully Type: Question
Projects
None yet
Development

No branches or pull requests