You are not logged in.

#1 2025-01-02 16:50:11

gu1d00
Member
Registered: 2023-12-27
Posts: 5

[SOLVED] Did something stupid and broke Yay

Long story short...

Yesterday I update the system with:

Sudo pacman -Syu

Everything went smooth.

After that I tried to update AUR packages with:

Sudo yay -Syu

and received this error:

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

Looked online for a solution and I found THIS ISSUE on GitHub.
I tried to do as suggested by this user:

alibaghernejad wrote:

sudo pacman -Rns yay-bin yay-bin-debug
sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

But when I run the first command I received this error:

errore: il seguente pacchetto non è stato trovato: yay-bin
errore: il seguente pacchetto non è stato trovato: yay-bin-debug

(Sorry for the italian, basically it says that the two packages could not be find).

After that I simply tried to reinstall Yay with:

git clone https://aur.archlinux.org/yay.git

At this point I was hoping to simply "replace" Yay with a newer version, but I received this message instead:

fatal: il percorso di destinazione 'yay' esiste già e non è una directory vuota.

(Again, sorry for the italian, it says that yay folder already exist and is not empty).

At this point I had a "brilliant" idea: simply delete yay folder, why not? Ok, this was stupid, but I run out of ideas at this point and this seemed a good option.
This resulted in deleting a lot of stuff inside the yay folder but I can't delete this:

./yay/src/gopath

So now I'm stuck because I can't reinstall/update Yay, but now is not even working. Can someone help me?

Thanks in advance for your time,

gu1d00.

Last edited by gu1d00 (2025-01-03 18:11:44)

Offline

#2 2025-01-02 17:05:15

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,544
Website

Re: [SOLVED] Did something stupid and broke Yay

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2025-01-02 17:15:40

arh
Member
Registered: 2024-10-09
Posts: 19

Re: [SOLVED] Did something stupid and broke Yay

you cannot remove the packages "yay-bin" and "yay-bin-debug" because you likely installed "yay" and "yay-debug" without the -bin. check them out with "pacman --query yay yay-debug"

gu1d00 wrote:

(Again, sorry for the italian, it says that yay folder already exist and is not empty).

you cannot clone to an existing folder and since you presumably cloned yay there before, the folder exists.

gu1d00 wrote:

This resulted in deleting a lot of stuff inside the yay folder but I can't delete this:

./yay/src/gopath

why? any error messages?

you could remove the yay packages you have installed, clone yay to another destination (or get rid of the folder) and build it from there with makepkg. that should rebuild it with the new pacman libs.
in the future you can also prepend your commands with "LANG=C.UTF-8" to not have the output in italian.

Last edited by arh (2025-01-02 17:39:07)

Offline

#4 2025-01-02 21:05:00

gu1d00
Member
Registered: 2023-12-27
Posts: 5

Re: [SOLVED] Did something stupid and broke Yay

@WorMzy: thanks, I wasn't sure about the correct section.

@arh: thanks for you reply, you were correct! I was able to remove yay with:

sudo pacman -Rns yay yay-debug

(without bin).

After that I removed the yay folder. Earlier I couldn't do it because some files in it were protected, I forgot to run rm with sudo. Sorry! neutral

Finally I rebuilt the yay package from with makepkg.

Just another question: after rebuilding yay I tried to update it (just to be sure) with pacman and this is what I got:

uido@mac ~/yay % LANG=C.UTF-8 sudo pacman -Syu yay                                                                                                                                                                                                     
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
error: target not found: yay

Is it because I built yay with makepkg?

Offline

#5 2025-01-02 21:43:23

arh
Member
Registered: 2024-10-09
Posts: 19

Re: [SOLVED] Did something stupid and broke Yay

gu1d00 wrote:

After that I removed the yay folder. Earlier I couldn't do it because some files in it were protected, I forgot to run rm with sudo. Sorry! neutral

you probably shouldn't run sudo unless needed. the files inside the git repo are "write-protected" as far as i know and might need manual confirmation for the deletion of each one but you can force the deletion with the -f flag with rm. sudo isn't needed there.

gu1d00 wrote:

Just another question: after rebuilding yay I tried to update it (just to be sure) with pacman and this is what I got:

uido@mac ~/yay % LANG=C.UTF-8 sudo pacman -Syu yay                                                                                                                                                                                                     
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
error: target not found: yay

Is it because I built yay with makepkg?

it's because with that command you are trying to sync the package "yay" from the arch repos with pacman but there's no package called "yay" in the official arch repos. you can't update yay with pacman - you either do it manually or through yay itself.

Offline

#6 2025-01-03 00:18:30

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,544
Website

Re: [SOLVED] Did something stupid and broke Yay

You don't seem to be aware of what the AUR is, and what AUR helpers are. I'm going to go out on a limb and guess you followed some third-party installation guide or tutorial on how to "install Arch", and as a result have no idea what you did or how to manage it. Please do take the time to read through https://wiki.archlinux.org/title/Arch_User_Repository and https://wiki.archlinux.org/title/AUR_helpers at the very least.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2025-01-03 09:30:11

gu1d00
Member
Registered: 2023-12-27
Posts: 5

Re: [SOLVED] Did something stupid and broke Yay

@arh: thanks for your reply.

@WorMzy: I'm definitely not an expert! After being an Ubuntu user for years I tried Arch because I found a cheap Mac and wanted to build the system myself (after repairing the Mac itself). I did it with the help of the official Arch wiki, but I'm not a developer, I just try to keep the system working for daily use.
In the past I read those guides, but very quickly, just to get things done. I know what AUR is but really superficially, I'll read those guides again.

I guess the problem is solved, I have to mark myself the thread as [SOLVED], right?

Offline

#8 2025-01-03 11:21:21

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,177

Re: [SOLVED] Did something stupid and broke Yay

Yup, please edit the first post and change the title.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

Board footer

Powered by FluxBB