You are not logged in.
I just did a system upgrade and ran into this issue with yay https://github.com/Jguer/yay/issues/1519. The solution is simple -- uninstall yay and reinstall. But unfortuantely I can't figure out how to do this.
$ sudo pacman -R yay
error: target not found: yay
(I get the same error if I try yay-bin and yay-git)
Or, trying to have yay uninstall itself:
$ yay -R yay
yay: error while loading shared libraries: libalpm.so.12: cannot open shared object file: No such file or directory
After cloning yay, if I try to make the package without installing I get:
$ makepkg -si
.
.
.
error: failed to commit transaction (conflicting files)
yay: /usr/bin/yay exists in filesystem
yay: /usr/share/bash-completion/completions/yay exists in filesystem
yay: /usr/share/fish/vendor_completions.d/yay.fish exists in filesystem
yay: /usr/share/man/man8/yay.8.gz exists in filesystem
yay: /usr/share/zsh/site-functions/_yay exists in filesystem
Errors occurred, no packages were upgraded.
If I check if any packages own this, I get:
$ pacman -Qo /usr/bin/yay
error: No package owns /usr/bin/yay
My though is just to force the upgrade, but there must be a "correct" way to remove my old version. Any thoughts?
EDIT: I just renamed the files to *_back, and reinstalled yay, and everything went fine.
Last edited by Jphillips (2021-06-16 16:45:58)
Offline
Moving to AUR issues
What is the output of pacman -Qs yay ?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Here's what I get:
$pacman -Qs yay
local/ruby-yard 0.9.26-2
YARD is a Ruby Documentation tool. The Y stands for "Yay!"
That doesn't seem right...
Offline
Sounds like your pacman database entry for yay got corrupted somehow.
Just remove the files that it mentions as existing in the file system manually and reinstall the yay package you got from the rebuild with pacman -U
Last edited by V1del (2021-06-16 14:21:03)
Offline
Thanks, that did the trick without issue.
Offline