/usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libcurl.so.4)

Hi all! I had this problem: /usr/lib/libc.so.6: version `GLIBC_2.34’ not found (required by /usr/lib/libcurl.so.4) when calling any utilities using C, before that I updated several packages manually (I did not touch the library itself), after downloading the libraries, install with the commands:

sudo pacman -dU glibc-2.35-2-x86_64.pkg.tar.zst
sudo pacman -dU lib32-glibc-2.35-2-x86_64.pkg.tar.zst
failed because pacman gives the same error, please help

ls -lah /usr/lib/libc.so.6
lrwxrwxrwx 1 root root May 12 12 2021 /usr/lib/libc.so.6 → libc-2.33.so

I would make sure that the system is fully updated, the latest glibc being 2.36-1:

sudo pacman -Syu
1 Like

This is what we call a “partial update” and it is wholly not supported on any Arch-based distro including EOS. Either upgrade everything at once or nothing at all.

I’d like to verify this, but I can’t

sudo pacman -Syu
pacman: /usr/lib/libc.so.6: version `GLIBC_2.34’ not found (required by /usr/lib/libcurl.so.4)

1 Like

This is wisdom :slight_smile: Now this is the only way I will do

1 Like

If the problem still persists, you could try command

sudo pacman -Sy glibc curl

before updating the system.

Looks like your glibc has been overridden by some other package…

moderation note:
moved to General System Pacman / this is not a BUG

Use pacman-static, pinned comment has a binary to directly use.
https://aur.archlinux.org/packages/pacman-static
Update system with sudo pacman -Syu

3 Likes

Unfortunately not working

sudo pacman -Sy glibc curl
pacman: /usr/lib/libc.so.6: version `GLIBC_2.34’ not found (required by /usr/lib/libcurl.so.4)

Oh thanks I’ll try

Using pacman-static is probably the best solution. Just remember that after downloading it you need to call that binary explicitly so the system one doesn’t get used.

i.e. ./pacman-static or /home/igoryan/pacman-static

2 Likes

The system is trolling me

makepkg -si
==> Building package pacman-static 5.1.3-5 (Fri 12 Aug 2022 00:26:21)
==> Checking dependencies to run…
/usr/bin/pacman: /usr/lib/libc.so.6: version `GLIBC_2.34’ not found (required by /usr/lib/libcurl.so.4)
==> ERROR: ‘pacman’ exited with a fatal error (1):

Read again:

1 Like

Don’t use makepkg, just download the file

1 Like