yay: error while loading shared libraries: libalpm.so.15: cannot open shared object file: No such file or directory
If you upgrade your system with pacman instead of upgrading your system with yay, your yay installation can break because it was compiled against an older
version of libalpm that was removed during the system
upgrade.
Fix Steps
- Remove the broken yay package
- Clone the yay AUR repository
- Build and reinstall yay manually with makepkg
First, remove the broken yay installation:
sudo pacman -R yayClone the yay repository and build it manually:
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -siThe -s flag automatically installs build dependencies
and -i installs the resulting package. Run yay again to confirm that rebuilding the yay package has fixed the issue.
Comments
Post a Comment