I've got this error with buildroot-2022.11 when executing make.
Ubuntu 20.04 - added this repo as described in the link
sudo apt update
sudo apt install libc6
It automatically installed 2.35 for me.
Answer from mister_kanister on Stack OverflowI've got this error with buildroot-2022.11 when executing make.
Ubuntu 20.04 - added this repo as described in the link
sudo apt update
sudo apt install libc6
It automatically installed 2.35 for me.
In my case, replace FROM go:1.21 with FROM go:1.21.0-bullseye (docker) or try tinkering there.
version `GLIBC_2.34' not found when using the command code
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /.singularity.d/libs/libGLdispatch.so.0)
root: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by root) - Stack Overflow
docker - /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found - Stack Overflow
Hi, I have recently dualbooted my laptop so im still very much a linux noob and I installed VSCode with the ubuntu software app. When I try to open VSCode nothing happens, and if I use the code command I get the following error:
ERROR: ld.so: object '/usr/local/lib/x86_64-linux-gnu/libinput-config.so' from /etc/ld.so.preload cannot be preloaded (failed to map segment from shared object): ignored.
/snap/code/136/usr/share/code/bin/../code: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /usr/local/lib/x86_64-linux-gnu/libinput-config.so)
Can someone please help me? I googled it but I can't find a solution. Thanks in advance
Edit:
Fixed it by using sudo vim on the /etc/ld.so.preload file and deleting the line /usr/local/lib/x86_64-linux-gnu/libinput-config.so.
one possible solution is to add this repo if you do not already have access to the package, as mentioned in the link:
You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:
deb http://security.ubuntu.com/ubuntu jammy-security main
then you should be able to install the missing package:
Copysudo apt update
sudo apt install libc6
The "buster" debian version is pretty old, and delivers a pretty old (2.28) glibc, which explains why you'd be missing the more modern glib symbols:
$ docker run -it debian:buster-slim /usr/bin/ldd --version
ldd (Debian GLIBC 2.28-10+deb10u3) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
You can use a newer version of debian to get them, e.g., "bookworm":
$ docker run -it debian:bookworm-slim /usr/bin/ldd --version
ldd (Debian GLIBC 2.36-9+deb12u7) 2.36
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
To consume it, just replace the image name in the second FROM directive:
Copy# Stage 2: Create a lightweight image for the Rust app
FROM debian:bookworm-slim
You don't have a high enough version of libc6, that is causing the error.
From How to fix “/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found”? – Super User:
That means the program was compiled against glibc version 2.14, and it requires that version to run, but your system has an older version installed. You'll need to either recompile the program against the version of glibc that's on your system, or install a newer version of glibc (the "libc6" package in Debian).
So, you just need to upgrade your libc6 package. All versions of Ubuntu have at least version 2.15 because it's a faily important package (reference).
To upgrade it, use these commands in a terminal:
sudo apt-get update
sudo apt-get install libc6
For the benefit of those like me who are only experiencing this issue in one particular directory;
In my case there was a shared library file in my directory that was somehow throwing off the OS. I opened the folder in a file explorer, sorted by 'mime type' then deleted files of the type 'sharedlib' (or application/x-sharedlib) until my command (ls) worked again without that error. In my case the shared library file at fault was named 'libc.so.6'.
That means the program was compiled against glibc version 2.14, and it requires that version to run, but your system has an older version installed. You'll need to either recompile the program against the version of glibc that's on your system, or install a newer version of glibc (the "libc6" package in Debian).
Debian has glibc 2.16 in the "experimental" repository, but recompiling the program is the safer option. Glibc is the library that everything depends on, so upgrading it can have far-reaching implications. Although there's probably nothing wrong with Debian's glibc 2.16 package, the fact that it's in the experimental repository means it hasn't received as much testing.
I have posted my solution here, repost it for reference.
In my situation, the error appears when I try to run an application (compiled on Ubuntu 12.04 LTS) using GLIBC_2.14 on Debian Wheezy (which installs glibc 2.13 by default).
I use a tricky way to run it, and get correct result:
Download libc6 and libc6-dev from Ubuntu 12.04 LTS
Run dpkg command to install them into a directory (/home/user/fakeroot/ for example):
$ dpkg -x libc6-dev_2.15-0ubuntu10.6_amd64.deb /home/user/fakeroot/ $ dpkg -x libc6_2.15-0ubuntu10.6_amd64.deb /home/user/fakeroot/Run your command with specified LD_LIBRARY_PATH:
$ LD_LIBRARY_PATH=/home/user/fakeroot/lib/x86_64-linux-gnu/ YOUR_COMMANDMy application only uses memcpy() from GLIBC_2.14, and it works.
I don't know whether it will work successfully for other applications. Wish it helpful.
When i tryed to run my app with Ubuntu 20.04, i got a error :
asbackup: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by asbackup) asbackup: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by asbackup) asbackup: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by asbackup)
I trying to find a web some guide, but i don't know how to fix this