You are not logged in.

#1 2021-06-16 13:53:31

Jphillips
Member
Registered: 2019-08-23
Posts: 65

[SOLVED] Unable to uninstall yay after upgrade

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

#2 2021-06-16 14:05:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [SOLVED] Unable to uninstall yay after upgrade

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

#3 2021-06-16 14:16:17

Jphillips
Member
Registered: 2019-08-23
Posts: 65

Re: [SOLVED] Unable to uninstall yay after upgrade

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

#4 2021-06-16 14:20:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: [SOLVED] Unable to uninstall yay after upgrade

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

#5 2021-06-16 16:46:19

Jphillips
Member
Registered: 2019-08-23
Posts: 65

Re: [SOLVED] Unable to uninstall yay after upgrade

Thanks, that did the trick without issue.

Offline

Board footer

Powered by FluxBB