Pacman not working because it misses GLIBC_2

On my Endeavour OS system I tried to reinstall Discord manually I uninstalled it and afterwards installed it. Now whenever I try to run a pacman command I get the following error:

pacman: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by pacman)
pacman: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib/libalpm.so.13)

Now I fear I accidentally deleted GLIBC_2.38 or something different of some importance. I cannot reinstall it or update the system because I am running into the same error.

Hi, how exactly did you delete discord?

If you uninstalled glibc, you can reinstall it by chrooting your system with a liveISO.

I am not sure chrooting into the system and reinstalling glibc would work.

You will be inside a system with a broken glibc which is needed by pacman which is needed to reinstall glibc.
:arrows_counterclockwise::face_with_spiral_eyes:

I think something like what is described in the link below should be used:

https://wiki.archlinux.org/title/Pacman#Pacman_crashes_during_an_upgrade

2 Likes

With an Arch Linux installation, you install Pacman and glibc by installing base or base-devel with Pacstrap, that was my idea.

Edit:
The point is that the installation starts from the liveISO and not from the system, right?

well sudo pacman -R discord

So what would be ideal to do?

follow the wiki link that pebcak have posted.

What does ls -l /usr/lib/libc* return?

That is what pacman-static is for.

4 Likes
-rw-r--r-- 1 root root  6120240 30. Apr 12:24 /usr/lib/libc.a
lrwxrwxrwx 1 root root       18 21. Okt 2021  /usr/lib/libcaca.so -> libcaca.so.0.99.20
lrwxrwxrwx 1 root root       18 21. Okt 2021  /usr/lib/libcaca.so.0 -> libcaca.so.0.99.20
-rwxr-xr-x 1 root root   817208 21. Okt 2021  /usr/lib/libcaca.so.0.99.20
lrwxrwxrwx 1 root root       21  9. Feb 2023  /usr/lib/libcairo-gobject.so -> libcairo-gobject.so.2
lrwxrwxrwx 1 root root       29  9. Feb 2023  /usr/lib/libcairo-gobject.so.2 -> libcairo-gobject.so.2.11708.0
-rwxr-xr-x 1 root root    42736  9. Feb 2023  /usr/lib/libcairo-gobject.so.2.11708.0
lrwxrwxrwx 1 root root       19  4. Okt 2022  /usr/lib/libcairomm-1.0.so -> libcairomm-1.0.so.1
lrwxrwxrwx 1 root root       23  4. Okt 2022  /usr/lib/libcairomm-1.0.so.1 -> libcairomm-1.0.so.1.4.0
-rwxr-xr-x 1 root root   165744  4. Okt 2022  /usr/lib/libcairomm-1.0.so.1.4.0
lrwxrwxrwx 1 root root       32  9. Feb 2023  /usr/lib/libcairo-script-interpreter.so -> libcairo-script-interpreter.so.2
lrwxrwxrwx 1 root root       40  9. Feb 2023  /usr/lib/libcairo-script-interpreter.so.2 -> libcairo-script-interpreter.so.2.11708.0
-rwxr-xr-x 1 root root   144080  9. Feb 2023  /usr/lib/libcairo-script-interpreter.so.2.11708.0
lrwxrwxrwx 1 root root       13  9. Feb 2023  /usr/lib/libcairo.so -> libcairo.so.2
lrwxrwxrwx 1 root root       21  9. Feb 2023  /usr/lib/libcairo.so.2 -> libcairo.so.2.11708.0
-rwxr-xr-x 1 root root  1248288  9. Feb 2023  /usr/lib/libcairo.so.2.11708.0
lrwxrwxrwx 1 root root       23  2. Mai 23:18 /usr/lib/libcamera-base.so -> libcamera-base.so.0.0.5
-rwxr-xr-x 1 root root   153656  2. Mai 23:18 /usr/lib/libcamera-base.so.0.0.5
lrwxrwxrwx 1 root root       18  2. Mai 23:18 /usr/lib/libcamera.so -> libcamera.so.0.0.5
-rwxr-xr-x 1 root root  1211384  2. Mai 23:18 /usr/lib/libcamera.so.0.0.5
lrwxrwxrwx 1 root root       25 29. Jan 2023  /usr/lib/libcanberra-gtk3.so -> libcanberra-gtk3.so.0.1.9
lrwxrwxrwx 1 root root       25 29. Jan 2023  /usr/lib/libcanberra-gtk3.so.0 -> libcanberra-gtk3.so.0.1.9
-rwxr-xr-x 1 root root    22328 29. Jan 2023  /usr/lib/libcanberra-gtk3.so.0.1.9
lrwxrwxrwx 1 root root       24 29. Jan 2023  /usr/lib/libcanberra-gtk.so -> libcanberra-gtk.so.0.1.9
lrwxrwxrwx 1 root root       24 29. Jan 2023  /usr/lib/libcanberra-gtk.so.0 -> libcanberra-gtk.so.0.1.9
-rwxr-xr-x 1 root root    22328 29. Jan 2023  /usr/lib/libcanberra-gtk.so.0.1.9
lrwxrwxrwx 1 root root       20 29. Jan 2023  /usr/lib/libcanberra.so -> libcanberra.so.0.2.5
lrwxrwxrwx 1 root root       20 29. Jan 2023  /usr/lib/libcanberra.so.0 -> libcanberra.so.0.2.5
-rwxr-xr-x 1 root root    71632 29. Jan 2023  /usr/lib/libcanberra.so.0.2.5
lrwxrwxrwx 1 root root       18  8. Apr 2023  /usr/lib/libcap-ng.so -> libcap-ng.so.0.0.0
lrwxrwxrwx 1 root root       18  8. Apr 2023  /usr/lib/libcap-ng.so.0 -> libcap-ng.so.0.0.0
-rwxr-xr-x 1 root root    26520  8. Apr 2023  /usr/lib/libcap-ng.so.0.0.0
lrwxrwxrwx 1 root root       11 28. Mär 2023  /usr/lib/libcap.so -> libcap.so.2
lrwxrwxrwx 1 root root       14 28. Mär 2023  /usr/lib/libcap.so.2 -> libcap.so.2.68
-rwxr-xr-x 1 root root    42992 28. Mär 2023  /usr/lib/libcap.so.2.68
lrwxrwxrwx 1 root root       13 28. Jan 2023  /usr/lib/libcares.so -> libcares.so.2
lrwxrwxrwx 1 root root       17 28. Jan 2023  /usr/lib/libcares.so.2 -> libcares.so.2.6.0
-rwxr-xr-x 1 root root   100168 28. Jan 2023  /usr/lib/libcares.so.2.6.0
lrwxrwxrwx 1 root root       13  1. Feb 2023  /usr/lib/libcblas.so -> libcblas.so.3
lrwxrwxrwx 1 root root       18  1. Feb 2023  /usr/lib/libcblas.so.3 -> libcblas.so.3.11.0
-rwxr-xr-x 1 root root   120768  1. Feb 2023  /usr/lib/libcblas.so.3.11.0
lrwxrwxrwx 1 root root       15 30. Apr 12:11 /usr/lib/libcc1.so -> libcc1.so.0.0.0
lrwxrwxrwx 1 root root       15 30. Apr 12:11 /usr/lib/libcc1.so.0 -> libcc1.so.0.0.0
-rwxr-xr-x 1 root root   142048 30. Apr 12:11 /usr/lib/libcc1.so.0.0.0
lrwxrwxrwx 1 root root       27 16. Mai 2020  /usr/lib/libcdda_interface.so -> libcdda_interface.so.0.10.2
lrwxrwxrwx 1 root root       27 16. Mai 2020  /usr/lib/libcdda_interface.so.0 -> libcdda_interface.so.0.10.2
-rw-r--r-- 1 root root    72928 16. Mai 2020  /usr/lib/libcdda_interface.so.0.10.2
lrwxrwxrwx 1 root root       26 16. Mai 2020  /usr/lib/libcdda_paranoia.so -> libcdda_paranoia.so.0.10.2
lrwxrwxrwx 1 root root       26 16. Mai 2020  /usr/lib/libcdda_paranoia.so.0 -> libcdda_paranoia.so.0.10.2
-rw-r--r-- 1 root root    38600 16. Mai 2020  /usr/lib/libcdda_paranoia.so.0.10.2
lrwxrwxrwx 1 root root       21 16. Mai 2020  /usr/lib/libcdio_cdda.so -> libcdio_cdda.so.2.0.0
lrwxrwxrwx 1 root root       21 16. Mai 2020  /usr/lib/libcdio_cdda.so.2 -> libcdio_cdda.so.2.0.0
-rwxr-xr-x 1 root root    34568 16. Mai 2020  /usr/lib/libcdio_cdda.so.2.0.0
lrwxrwxrwx 1 root root       25 16. Mai 2020  /usr/lib/libcdio_paranoia.so -> libcdio_paranoia.so.2.0.0
lrwxrwxrwx 1 root root       25 16. Mai 2020  /usr/lib/libcdio_paranoia.so.2 -> libcdio_paranoia.so.2.0.0
-rwxr-xr-x 1 root root    34616 16. Mai 2020  /usr/lib/libcdio_paranoia.so.2.0.0
lrwxrwxrwx 1 root root       18  7. Okt 2022  /usr/lib/libcdio++.so -> libcdio++.so.1.0.0
lrwxrwxrwx 1 root root       17  7. Okt 2022  /usr/lib/libcdio.so -> libcdio.so.19.0.0
lrwxrwxrwx 1 root root       18  7. Okt 2022  /usr/lib/libcdio++.so.1 -> libcdio++.so.1.0.0
-rwxr-xr-x 1 root root    18296  7. Okt 2022  /usr/lib/libcdio++.so.1.0.0
lrwxrwxrwx 1 root root       17  7. Okt 2022  /usr/lib/libcdio.so.19 -> libcdio.so.19.0.0
-rwxr-xr-x 1 root root   157904  7. Okt 2022  /usr/lib/libcdio.so.19.0.0
lrwxrwxrwx 1 root root       19 21. Okt 2022  /usr/lib/libcdr-0.1.so -> libcdr-0.1.so.1.0.7
lrwxrwxrwx 1 root root       19 21. Okt 2022  /usr/lib/libcdr-0.1.so.1 -> libcdr-0.1.so.1.0.7
-rwxr-xr-x 1 root root   690040 21. Okt 2022  /usr/lib/libcdr-0.1.so.1.0.7
lrwxrwxrwx 1 root root       19  1. Mär 2023  /usr/lib/libchromaprint.so -> libchromaprint.so.1
lrwxrwxrwx 1 root root       23  1. Mär 2023  /usr/lib/libchromaprint.so.1 -> libchromaprint.so.1.5.1
-rwxr-xr-x 1 root root    59368  1. Mär 2023  /usr/lib/libchromaprint.so.1.5.1
lrwxrwxrwx 1 root root       18  2. Mai 18:09 /usr/lib/libclang-cpp.so -> libclang-cpp.so.15
-rwxr-xr-x 1 root root 51448848  2. Mai 18:09 /usr/lib/libclang-cpp.so.15
lrwxrwxrwx 1 root root       14  2. Mai 18:09 /usr/lib/libclang.so -> libclang.so.15
lrwxrwxrwx 1 root root       18  2. Mai 18:09 /usr/lib/libclang.so.15 -> libclang.so.15.0.7
-rwxr-xr-x 1 root root 27264312  2. Mai 18:09 /usr/lib/libclang.so.15.0.7
lrwxrwxrwx 1 root root       22 25. Okt 2022  /usr/lib/libcloudproviders.so -> libcloudproviders.so.0
lrwxrwxrwx 1 root root       26 25. Okt 2022  /usr/lib/libcloudproviders.so.0 -> libcloudproviders.so.0.3.1
-rwxr-xr-x 1 root root    92120 25. Okt 2022  /usr/lib/libcloudproviders.so.0.3.1
lrwxrwxrwx 1 root root       28 22. Jan 2023  /usr/lib/libclucene-contribs-lib.so -> libclucene-contribs-lib.so.1
lrwxrwxrwx 1 root root       34 22. Jan 2023  /usr/lib/libclucene-contribs-lib.so.1 -> libclucene-contribs-lib.so.2.3.3.4
-rwxr-xr-x 1 root root   393208 22. Jan 2023  /usr/lib/libclucene-contribs-lib.so.2.3.3.4
lrwxrwxrwx 1 root root       20 22. Jan 2023  /usr/lib/libclucene-core.so -> libclucene-core.so.1
lrwxrwxrwx 1 root root       26 22. Jan 2023  /usr/lib/libclucene-core.so.1 -> libclucene-core.so.2.3.3.4
-rwxr-xr-x 1 root root  1723680 22. Jan 2023  /usr/lib/libclucene-core.so.2.3.3.4
lrwxrwxrwx 1 root root       22 22. Jan 2023  /usr/lib/libclucene-shared.so -> libclucene-shared.so.1
lrwxrwxrwx 1 root root       28 22. Jan 2023  /usr/lib/libclucene-shared.so.1 -> libclucene-shared.so.2.3.3.4
-rwxr-xr-x 1 root root   137208 22. Jan 2023  /usr/lib/libclucene-shared.so.2.3.3.4
lrwxrwxrwx 1 root root       22 30. Apr 12:24 /usr/lib/libc_malloc_debug.so -> libc_malloc_debug.so.0
-rwxr-xr-x 1 root root    56392 30. Apr 12:24 /usr/lib/libc_malloc_debug.so.0
-rw-r--r-- 1 root root     6362 30. Apr 12:24 /usr/lib/libc_nonshared.a
lrwxrwxrwx 1 root root       22 28. Mai 2022  /usr/lib/libcollection.so -> libcollection.so.4.1.1
lrwxrwxrwx 1 root root       22 28. Mai 2022  /usr/lib/libcollection.so.4 -> libcollection.so.4.1.1
-rwxr-xr-x 1 root root    55048 28. Mai 2022  /usr/lib/libcollection.so.4.1.1
-rwxr-xr-x 1 root root    14104 16. Feb 2022  /usr/lib/libcolordcompat.so
lrwxrwxrwx 1 root root       18 29. Mär 2022  /usr/lib/libcolord-gtk.so -> libcolord-gtk.so.1
lrwxrwxrwx 1 root root       22 29. Mär 2022  /usr/lib/libcolord-gtk.so.1 -> libcolord-gtk.so.1.0.3
-rwxr-xr-x 1 root root    30512 29. Mär 2022  /usr/lib/libcolord-gtk.so.1.0.3
lrwxrwxrwx 1 root root       21 16. Feb 2022  /usr/lib/libcolordprivate.so -> libcolordprivate.so.2
lrwxrwxrwx 1 root root       25 16. Feb 2022  /usr/lib/libcolordprivate.so.2 -> libcolordprivate.so.2.0.5
-rwxr-xr-x 1 root root   228240 16. Feb 2022  /usr/lib/libcolordprivate.so.2.0.5
lrwxrwxrwx 1 root root       14 16. Feb 2022  /usr/lib/libcolord.so -> libcolord.so.2
lrwxrwxrwx 1 root root       18 16. Feb 2022  /usr/lib/libcolord.so.2 -> libcolord.so.2.0.5
-rwxr-xr-x 1 root root   367504 16. Feb 2022  /usr/lib/libcolord.so.2.0.5
lrwxrwxrwx 1 root root       16 16. Feb 2022  /usr/lib/libcolorhug.so -> libcolorhug.so.2
lrwxrwxrwx 1 root root       20 16. Feb 2022  /usr/lib/libcolorhug.so.2 -> libcolorhug.so.2.0.5
-rwxr-xr-x 1 root root   100120 16. Feb 2022  /usr/lib/libcolorhug.so.2.0.5
lrwxrwxrwx 1 root root       15  7. Feb 2023  /usr/lib/libcom_err.so -> libcom_err.so.2
lrwxrwxrwx 1 root root       17  7. Feb 2023  /usr/lib/libcom_err.so.2 -> libcom_err.so.2.1
-rwxr-xr-x 1 root root    18304  7. Feb 2023  /usr/lib/libcom_err.so.2.1
lrwxrwxrwx 1 root root       16  5. Sep 2022  /usr/lib/libcord.so -> libcord.so.1.5.0
lrwxrwxrwx 1 root root       16  5. Sep 2022  /usr/lib/libcord.so.1 -> libcord.so.1.5.0
-rwxr-xr-x 1 root root    38584  5. Sep 2022  /usr/lib/libcord.so.1.5.0
lrwxrwxrwx 1 root root       14  7. Feb 2023  /usr/lib/libcrypto.so -> libcrypto.so.3
-rwxr-xr-x 1 root root  4488288  7. Feb 2023  /usr/lib/libcrypto.so.3
lrwxrwxrwx 1 root root       23 21. Mär 2023  /usr/lib/libcryptsetup.so -> libcryptsetup.so.12.9.0
lrwxrwxrwx 1 root root       23 21. Mär 2023  /usr/lib/libcryptsetup.so.12 -> libcryptsetup.so.12.9.0
-rwxr-xr-x 1 root root   529576 21. Mär 2023  /usr/lib/libcryptsetup.so.12.9.0
lrwxrwxrwx 1 root root       17 19. Nov 2022  /usr/lib/libcrypt.so -> libcrypt.so.2.0.0
lrwxrwxrwx 1 root root       17 19. Nov 2022  /usr/lib/libcrypt.so.2 -> libcrypt.so.2.0.0
-rwxr-xr-x 1 root root   165824 19. Nov 2022  /usr/lib/libcrypt.so.2.0.0
-rw-r--r-- 1 root root      255 30. Apr 12:24 /usr/lib/libc.so
-rwxr-xr-x 1 root root  1961632 30. Apr 12:24 /usr/lib/libc.so.6
-rw-r--r-- 1 root root   357110 30. Apr 14:56 /usr/lib/libctf.a
-rw-r--r-- 1 root root   346986 30. Apr 14:56 /usr/lib/libctf-nobfd.a
lrwxrwxrwx 1 root root       21 30. Apr 14:56 /usr/lib/libctf-nobfd.so -> libctf-nobfd.so.0.0.0
lrwxrwxrwx 1 root root       21 30. Apr 14:56 /usr/lib/libctf-nobfd.so.0 -> libctf-nobfd.so.0.0.0
-rwxr-xr-x 1 root root   214992 30. Apr 14:56 /usr/lib/libctf-nobfd.so.0.0.0
lrwxrwxrwx 1 root root       15 30. Apr 14:56 /usr/lib/libctf.so -> libctf.so.0.0.0
lrwxrwxrwx 1 root root       15 30. Apr 14:56 /usr/lib/libctf.so.0 -> libctf.so.0.0.0
-rwxr-xr-x 1 root root   214992 30. Apr 14:56 /usr/lib/libctf.so.0.0.0
lrwxrwxrwx 1 root root       17 12. Feb 2023  /usr/lib/libcupsimage.so -> libcupsimage.so.2
-rwxr-xr-x 1 root root    14056 12. Feb 2023  /usr/lib/libcupsimage.so.2
lrwxrwxrwx 1 root root       12 12. Feb 2023  /usr/lib/libcups.so -> libcups.so.2
-rwxr-xr-x 1 root root   640920 12. Feb 2023  /usr/lib/libcups.so.2
lrwxrwxrwx 1 root root       19 20. Mär 2023  /usr/lib/libcurl-gnutls.so -> libcurl-gnutls.so.4
lrwxrwxrwx 1 root root       23 20. Mär 2023  /usr/lib/libcurl-gnutls.so.3 -> libcurl-gnutls.so.4.8.0
lrwxrwxrwx 1 root root       23 20. Mär 2023  /usr/lib/libcurl-gnutls.so.4 -> libcurl-gnutls.so.4.8.0
lrwxrwxrwx 1 root root       23 20. Mär 2023  /usr/lib/libcurl-gnutls.so.4.0.0 -> libcurl-gnutls.so.4.8.0
lrwxrwxrwx 1 root root       23 20. Mär 2023  /usr/lib/libcurl-gnutls.so.4.1.0 -> libcurl-gnutls.so.4.8.0
lrwxrwxrwx 1 root root       23 20. Mär 2023  /usr/lib/libcurl-gnutls.so.4.2.0 -> libcurl-gnutls.so.4.8.0
lrwxrwxrwx 1 root root       23 20. Mär 2023  /usr/lib/libcurl-gnutls.so.4.3.0 -> libcurl-gnutls.so.4.8.0
lrwxrwxrwx 1 root root       23 20. Mär 2023  /usr/lib/libcurl-gnutls.so.4.4.0 -> libcurl-gnutls.so.4.8.0
lrwxrwxrwx 1 root root       23 20. Mär 2023  /usr/lib/libcurl-gnutls.so.4.5.0 -> libcurl-gnutls.so.4.8.0
lrwxrwxrwx 1 root root       23 20. Mär 2023  /usr/lib/libcurl-gnutls.so.4.6.0 -> libcurl-gnutls.so.4.8.0
lrwxrwxrwx 1 root root       23 20. Mär 2023  /usr/lib/libcurl-gnutls.so.4.7.0 -> libcurl-gnutls.so.4.8.0
-rwxr-xr-x 1 root root   691416 20. Mär 2023  /usr/lib/libcurl-gnutls.so.4.8.0
lrwxrwxrwx 1 root root       16 20. Mär 2023  /usr/lib/libcurl.so -> libcurl.so.4.8.0
lrwxrwxrwx 1 root root       16 20. Mär 2023  /usr/lib/libcurl.so.4 -> libcurl.so.4.8.0
-rwxr-xr-x 1 root root   695632 20. Mär 2023  /usr/lib/libcurl.so.4.8.0
lrwxrwxrwx 1 root root       13  2. Jan 2023  /usr/lib/libcurses.so -> libncurses.so
-rw-r--r-- 1 root root       18  2. Jan 2023  /usr/lib/libcursesw.so
lrwxrwxrwx 1 root root       11  2. Apr 2023  /usr/lib/libcxl.so -> libcxl.so.1
lrwxrwxrwx 1 root root       15  2. Apr 2023  /usr/lib/libcxl.so.1 -> libcxl.so.1.1.3
-rwxr-xr-x 1 root root    83912  2. Apr 2023  /usr/lib/libcxl.so.1.1.3

/usr/lib/libcamera:
insgesamt 304
-rwxr-xr-x 1 root root 124784  2. Mai 23:18 ipa_ipu3.so
-rw-r--r-- 1 root root    256  2. Mai 23:18 ipa_ipu3.so.sign
-rwxr-xr-x 1 root root  30576  2. Mai 23:18 ipa_vimc.so
-rw-r--r-- 1 root root    256  2. Mai 23:18 ipa_vimc.so.sign
-rwxr-xr-x 1 root root  75792  2. Mai 23:18 ipu3_ipa_proxy
-rwxr-xr-x 1 root root  63504  2. Mai 23:18 vimc_ipa_proxy

/usr/lib/libcanberra-0.30:
insgesamt 112
-rwxr-xr-x 1 root root  1040 29. Jan 2023  libcanberra-alsa.la
-rwxr-xr-x 1 root root 22320 29. Jan 2023  libcanberra-alsa.so
-rwxr-xr-x 1 root root  1037 29. Jan 2023  libcanberra-multi.la
-rwxr-xr-x 1 root root 18224 29. Jan 2023  libcanberra-multi.so
-rwxr-xr-x 1 root root  1031 29. Jan 2023  libcanberra-null.la
-rwxr-xr-x 1 root root 14128 29. Jan 2023  libcanberra-null.so
-rwxr-xr-x 1 root root  1054 29. Jan 2023  libcanberra-pulse.la
-rwxr-xr-x 1 root root 34608 29. Jan 2023  libcanberra-pulse.so

Ah, right! That is what I thought of first but wasn’t sure (read didn’t know) if it would need need glibc to work or not.

Thanks for the info, good to know!

so now i shall use your link? At 3.5.1 it says never do something with a symlink. I have absolutely no idea what that is and it says it might break your system which concerns me. I dont know if I might accidentally do something stupid :woozy_face:

It looks like you have it installed.

Did you do something that would overwrite those files?

If you are still able to access the system, I would download pacman-static manually and try updating the system.

1 Like

Not that I(highly unprofessional) knew

Where do I download it and how do I install it?

You don’t install it. You download it, make it executable with chmod a+x pacman-static and run it directly.

You can download it here: https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static

4 Likes

Ok I ran this command and it seems to have worked. Whats the command to update the system now?

sudo ./pacman-static -Syu