Error with yay

Recently I had an issue with updates not being installed due to a commit error, I was able to solve it. See my post here. Now when I try to run yay I get this error:

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

I tried using the solution someone posted here. But when I try to make the package I get this error:

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).

Not sure how to proceed from here, any help would be appreciated!

Have a look here and try these things first:

  1. sudo pacman -S rate-mirrrors
    rate-mirrors arch --max-delay 7200 | sudo tee /etc/pacman.d/mirrorlist
    
  2. sudo pacman -Syu

Tried running both, here are the results:

[rudy@rodolfo-latitude7490 ~]$ sudo pacman -S rate-mirrrors
error: target not found: rate-mirrrors
[rudy@rodolfo-latitude7490 ~]$ sudo pacman -Syu
:: Synchronizing package databases…
error: failed to synchronize all databases (no servers configured for repository)

Ok. You might go here and generate a https + IPv4 mirrorlist:
https://archlinux.org/mirrorlist/

Then edit the contents of /etc/pacman.d/mirrorlist and completely replace its contents with that generated mirrorlist:

sudo nano /etc/pacman.d/mirrorlist

Or to simply grab all mirrors, you could run this:

wget https://archlinux.org/mirrorlist/all/https/ -O mirrorlist && sudo cp mirrorlist /etc/pacman.d/mirrorlist

Okay, making some progress here. I went ahead an grabbed all mirrors using the command you posted. Got all the way to sudo pacman -Syu and got this error:

[rudy@rodolfo-latitude7490 ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (60)                             Old Version   New Version     Net Change

extra/alsa-lib                           1.2.14-2      1.2.15.1-1        0.04 MiB
extra/alsa-ucm-conf                      1.2.14-2      1.2.15.1-1        0.07 MiB
extra/alsa-utils                         1.2.14-1      1.2.15.1-1        0.02 MiB
extra/aom                                3.13.1-1      3.13.1-2          0.00 MiB
extra/bash-completion                    2.17.0-1      2.17.0-2          0.00 MiB
extra/code                               1.107.0-1     1.107.1-1         0.00 MiB
core/cryptsetup                          2.8.1-1       2.8.3-1           0.00 MiB
extra/dmidecode                          3.6-1         3.7-1             0.01 MiB
endeavouros/eos-bash-shared              25.12-2       25.12.3-1         0.00 MiB
endeavouros/eos-reboot-recommended       25.12-1       25.12.1-1         0.00 MiB
extra/fzf                                0.67.0-1      0.67.0-2          0.00 MiB
core/gnupg                               2.4.8-4       2.4.9-1           0.01 MiB
extra/gst-libav                          1.26.9-1      1.26.10-1         0.00 MiB
extra/gst-plugin-gtk                     1.26.9-1      1.26.10-1         0.00 MiB
extra/gst-plugins-bad                    1.26.9-1      1.26.10-1         0.00 MiB
extra/gst-plugins-bad-libs               1.26.9-1      1.26.10-1         0.00 MiB
extra/gst-plugins-base                   1.26.9-1      1.26.10-1         0.00 MiB
extra/gst-plugins-base-libs              1.26.9-1      1.26.10-1         0.00 MiB
extra/gst-plugins-good                   1.26.9-1      1.26.10-1         0.00 MiB
extra/gst-plugins-ugly                   1.26.9-1      1.26.10-1         0.00 MiB
extra/gstreamer                          1.26.9-1      1.26.10-1        -0.01 MiB
extra/gthumb                             3.12.8.2-1    3.12.8.2-2       -0.07 MiB
extra/harfbuzz                           12.2.0-2      12.3.0-1         -0.02 MiB
extra/harfbuzz-icu                       12.2.0-2      12.3.0-1          0.00 MiB
core/iana-etc                            20251120-1    20251215-1        0.00 MiB
endeavouros/kernel-install-for-dracut    1.13-1        1.14.1-1          0.00 MiB
extra/ldb                                2:4.23.3-2    2:4.23.4-1        0.00 MiB
multilib/lib32-alsa-lib                  1.2.14-2      1.2.15.1-1        0.03 MiB
extra/libcdio                            2.2.0-1       2.3.0-1           0.01 MiB
extra/libconfig                          1.8.1-1       1.8.2-1           0.00 MiB
extra/libheif                            1.20.2-3      1.21.0-1          0.22 MiB
core/libnghttp3                          1.13.1-1      1.14.0-1          0.00 MiB
extra/libngtcp2                          1.18.0-1      1.19.0-1          0.00 MiB
extra/libopenmpt                         0.8.3-1       0.8.4-1           0.00 MiB
extra/libraw                             0.21.4-1      0.21.5-1          0.01 MiB
extra/libsidplayfp                       2.15.2-1      2.16.0-1          0.02 MiB
extra/libwbclient                        2:4.23.3-2    2:4.23.4-1        0.00 MiB
extra/libwireplumber                     0.5.12-1      0.5.13-1          0.01 MiB
extra/libx11                             1.8.12-1      1.8.12-2          0.00 MiB
extra/mpg123                             1.33.3-1      1.33.4-1          0.00 MiB
extra/mpv                                1:0.40.0-7    1:0.41.0-2        0.14 MiB
extra/networkmanager-openvpn             1.12.4-1      1.12.5-1          0.00 MiB
extra/networkmanager-vpn-plugin-openvpn  1.12.4-1      1.12.5-1          0.00 MiB
extra/openal                             1.24.3-2      1.25.0-1          0.26 MiB
extra/openresolv                         3.17.3-1      3.17.4-1          0.00 MiB
extra/parallel                           20251122-1    20251222-1        0.00 MiB
extra/polkit                             127-1         127-3             0.00 MiB
extra/python-pyparsing                   3.2.5-1       3.3.1-1           0.06 MiB
extra/re2                                1:20240702-7  2:2025.11.05-1    0.18 MiB
extra/sbcl                               2.5.11-1      2.6.0-1          10.82 MiB
extra/simdjson                           1:4.2.2-1     1:4.2.4-1         0.01 MiB
extra/smbclient                          2:4.23.3-2    2:4.23.4-1        0.00 MiB
extra/telegram-desktop                   6.3.9-1       6.3.10-1          0.14 MiB
endeavouros/welcome                      25.12.1-1     25.12.2-1         0.00 MiB
extra/wireplumber                        0.5.12-1      0.5.13-1          0.03 MiB
extra/xapp                               3.2.0-2       3.2.1-1           0.67 MiB
extra/xapp-symbolic-icons                1.0.6-1       1.0.7-2           0.00 MiB
extra/xed                                3.8.5-1       3.8.7-1           0.19 MiB
extra/xorgproto                          2024.1-2      2025.1-1          0.01 MiB
extra/xterm                              404-1         406-1             1.05 MiB

Total Installed Size:  562.91 MiB
Net Upgrade Size:       13.94 MiB

:: Proceed with installation? [Y/n] y
(60/60) checking keys in keyring                                                              [-------------------------------------------------------] 100%
(60/60) checking package integrity                                                            [-------------------------------------------------------] 100%
(60/60) loading package files                                                                 [-------------------------------------------------------] 100%
(60/60) checking for file conflicts                                                           [-------------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
xterm: /usr/bin/koi8rxterm exists in filesystem
xterm: /usr/bin/resize exists in filesystem
xterm: /usr/bin/uxterm exists in filesystem
xterm: /usr/bin/xterm exists in filesystem
xterm: /usr/share/X11/app-defaults/KOI8RXTerm exists in filesystem
xterm: /usr/share/X11/app-defaults/KOI8RXTerm-color exists in filesystem
xterm: /usr/share/X11/app-defaults/UXTerm exists in filesystem
xterm: /usr/share/X11/app-defaults/UXTerm-color exists in filesystem
xterm: /usr/share/X11/app-defaults/XTerm exists in filesystem
xterm: /usr/share/X11/app-defaults/XTerm-color exists in filesystem
xterm: /usr/share/applications/uxterm.desktop exists in filesystem
xterm: /usr/share/applications/xterm.desktop exists in filesystem
xterm: /usr/share/licenses/xterm/COPYING exists in filesystem
xterm: /usr/share/man/man1/koi8rxterm.1.gz exists in filesystem
xterm: /usr/share/man/man1/resize.1.gz exists in filesystem
xterm: /usr/share/man/man1/uxterm.1.gz exists in filesystem
xterm: /usr/share/man/man1/xterm.1.gz exists in filesystem
xterm: /usr/share/pixmaps/filled-xterm_16x16.xpm exists in filesystem
xterm: /usr/share/pixmaps/filled-xterm_32x32.xpm exists in filesystem
xterm: /usr/share/pixmaps/filled-xterm_48x48.xpm exists in filesystem
xterm: /usr/share/pixmaps/mini.xterm_16x16.xpm exists in filesystem
xterm: /usr/share/pixmaps/mini.xterm_32x32.xpm exists in filesystem
xterm: /usr/share/pixmaps/mini.xterm_48x48.xpm exists in filesystem
xterm: /usr/share/pixmaps/xterm-color_16x16.xpm exists in filesystem
xterm: /usr/share/pixmaps/xterm-color_32x32.xpm exists in filesystem
xterm: /usr/share/pixmaps/xterm-color_48x48.xpm exists in filesystem
xterm: /usr/share/pixmaps/xterm_16x16.xpm exists in filesystem
xterm: /usr/share/pixmaps/xterm_32x32.xpm exists in filesystem
xterm: /usr/share/pixmaps/xterm_48x48.xpm exists in filesystem
Errors occurred, no packages were upgraded.
[rudy@rodolfo-latitude7490 ~]$ 


You might try @xircon 's suggestion in your other thread, to address that.

Just a note though, these “... exists in filesystem” errors should not occur under normal circumstances.

It essentially means these files got here without the Arch package management system knowing about it. That is, something else put them there.

That might be the user (yourself), or other package management tools, like Node’s npm, or Python’s pip (as common examples).

Oh, that sounds.. concerning. Should I be doing something about that? Like remove them. Thanks for the suggestion, I went ahead and did that and it worked kinda. Still can’t run yay but was able to run sudo pacman -Syu

You would know best (hopefully :sweat_smile:) why those files were put there in a manner that the Arch package management system was unaware of. Do you have any thoughts there? Restoring a backup? Using non-Arch package management tools? …etc

What does this output?

sudo pacman -Q | grep yay

Hmm.. No restoration of back ups, no non-Arch package management tools, noting I can remember. heh :sweat_smile: Here is the output:

[rudy@rodolfo-latitude7490 ~]$ sudo pacman -Q | grep yay
[sudo] password for rudy: 
yay-git 12.5.3.r0.g99770dec-1
yay-git-debug 12.5.3.r0.g99770dec-1
[rudy@rodolfo-latitude7490 ~]$ 

Run:

sudo pacman -S yay

And replace yay-git with yay.

Alright, replaced yay-git and ran yay with no issues. Just saw your edit on a previous comment and yes Python’s pip is a constant source of small headaches heh

Ah good.

You can use -git versions of packages, but you need to remember that updating them isn’t automatic, you need to explicitly update those packages. These are typically not release versions, so you would also expect bugs. I’d suggest sticking to the release packages (yay) unless you’re pretty savvy with those things.

If using yay to update, you can instruct it to update development packages such as that, using:

yay --devel

They’re otherwise overlooked.

If you have rate-mirrors now properly installed, I’d also suggest running these two commands to speed test the Arch and EndeavourOS mirrors and update both files accordingly:

rate-mirrors --disable-comments-in-file --protocol=https arch --max-delay 7200 --completion=1 | sudo tee /etc/pacman.d/mirrorlist
rate-mirrors --disable-comments-in-file --protocol=https endeavouros  | sudo tee /etc/pacman.d/endeavouros-mirrorlist

Thank you so much for all of your help with this. I updated the mirrors as you suggested.

xterm package somehow loosing pacman db connection..