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 Overflow
Discussions

version `GLIBC_2.34' not found when using the command code
You may need to install glibc sudo apt install glibc More on reddit.com
🌐 r/linux4noobs
9
6
August 11, 2023
ubuntu - error "/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found" - Stack Overflow
Here is My Dockerfile: FROM ubuntu:20.04 RUN apt-get update && apt-get upgrade -y RUN apt-get install libssl-dev RUN apt-get install -y -q build-essential curl RUN curl https://sh.rustup.r... More on stackoverflow.com
🌐 stackoverflow.com
Problem when running on Ubuntu 20.04
I've had a similar problem. My solution was to build the app in a Ubuntu docker container and then copy the resulting binary from that container. The Dockerfile I've used looked like this: # Dockerfile for building a rust executable that can be run on a specific Ubuntu version (and newer) FROM ubuntu:20.04 RUN apt update && apt -y install curl build-essential RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y RUN ~/.cargo/bin/rustup update WORKDIR /rust/build/ COPY Cargo.toml Cargo.toml COPY Cargo.lock Cargo.lock # Docker will cache a step as long as there haven't been any changes to the files. # This will download and build all the dependencies and will re-run only when Cargo.toml/Cargo.lock will change RUN mkdir -p src/bin && echo "fn main() {}" > src/bin/docker_cache.rs && /bin/bash -c "source ${HOME}/.cargo/env && cargo build --release --bin docker_cache && exit 0" COPY . . RUN ["/bin/bash", "-c", "source ${HOME}/.cargo/env && cargo build --release"] # USAGE: # docker build -t tmp/ubuntu20:build # if [ $? == 0 ]; then # docker container create --name extract tmp/ubuntu20:build # docker container cp extract:/rust/build/target/release/EXECUTABLE_NAME ./ # docker container rm extract # fi Edit: reddit did terrible things to formatting, this will hopefully be fixed now More on reddit.com
🌐 r/rust
8
3
August 10, 2023
glibc - `GLIBC_2.34' not found - Unix & Linux Stack Exchange
I am trying to run an up in my raspberry pi (4b with latest bullsey) which I have cross-compiled. The error am encountering is: “/lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found” ... More on unix.stackexchange.com
🌐 unix.stackexchange.com
🌐
GNOME Discourse
discourse.gnome.org › development
GLIB : ERROR /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found - Development - GNOME Discourse
January 24, 2024 - But when i tried to run the application ... version `GLIBC_2.34’ not found (required by ./source) Does this mean, GLIB is not backward compatible?...
Top answer
1 of 2
6

You can use following commands to bring in newer version of glibc in ubuntu 20.04, but note that as it is a system package, upgrading it may impact your system.

apt-get install gawk bison gcc make wget tar -y
wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.gz
tar -zxvf glibc-2.35.tar.gz && cd glibc-2.35
mkdir glibc-build && cd glibc-build
../configure --prefix=/opt/glibc
make
make install
2 of 2
0

Introducing glibc will break your core binaries. Updated core binaries require a newer kernel which breaks hardware drivers (like NVIDIA) that need your old kernel. This "vicious cycle" makes it impossible to use new glibc w/o breaking your system.

The only solution is to compile the unsupported drivers somehow for the new kernel. So far this is not possible.

If you try using GLIBC without updating its dependencies, you will get complaints of a version mismatch on its dependencies which go all the way down to the kernel, which is why it is not possible.

Your options are limited and it is not possible unless you use a virtual machine. But likely VM is not what you want because VMs do not have the advantage of talking to your hardware directly. They have some VM extensions for making that better but they only cover CPU and RAM, not the video/sound card, that is all emulated.

Summary

If you want to run something that needs newer hardware, there is just no way around that:

  1. You cant use unsupported hardware on newer kernel, and therefore linker, and then GLIBC.

  2. You can't use unsupported GLIBC on older kernel which relies on the new kernel features. If you try to do it by force (point to new compiled version of the new binaries) you will get an error that the linker/kernel versions are incorrect.

  3. The only solution to this is if there was a way to update your hardware drivers. If that isn't your problem, then UPGRADE UBUNTU to the latest version. If that IS your problem, then you are out of luck.

  4. Companies like NVIDIA and AMD drop video support after a few years and leave you up a creek with no paddle, stranded on an old OS unless you buy yet another video card (even if your current one is fast and does just fine, they do NOT care).

  5. Sandboxing in flatpak still needs those libraries to be able to link with your kernel. Sandboxing only fixes dependencies that are above the base system level. HOWEVER, if any of those libraries were built against a binaries that recursively rely on newer core libraries, you will still be stuck and it will still not work, below is an example:

/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found
(required by /tmp/.mount_my2newapp.a9fz3/usr/bin/../../usr/lib/liblzma.so.5)

As you can see here, even though the appimage/flatpak/snap was sandboxed, it still needed these new libraries further down the dependency chain.

🌐
Reddit
reddit.com › r/linux4noobs › version `glibc_2.34' not found when using the command code
r/linux4noobs on Reddit: version `GLIBC_2.34' not found when using the command code
August 11, 2023 -

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.

🌐
Reddit
reddit.com › r/rust › problem when running on ubuntu 20.04
r/rust on Reddit: Problem when running on Ubuntu 20.04
August 10, 2023 -

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

Top answer
1 of 2
2
I've had a similar problem. My solution was to build the app in a Ubuntu docker container and then copy the resulting binary from that container. The Dockerfile I've used looked like this: # Dockerfile for building a rust executable that can be run on a specific Ubuntu version (and newer) FROM ubuntu:20.04 RUN apt update && apt -y install curl build-essential RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y RUN ~/.cargo/bin/rustup update WORKDIR /rust/build/ COPY Cargo.toml Cargo.toml COPY Cargo.lock Cargo.lock # Docker will cache a step as long as there haven't been any changes to the files. # This will download and build all the dependencies and will re-run only when Cargo.toml/Cargo.lock will change RUN mkdir -p src/bin && echo "fn main() {}" > src/bin/docker_cache.rs && /bin/bash -c "source ${HOME}/.cargo/env && cargo build --release --bin docker_cache && exit 0" COPY . . RUN ["/bin/bash", "-c", "source ${HOME}/.cargo/env && cargo build --release"] # USAGE: # docker build -t tmp/ubuntu20:build # if [ $? == 0 ]; then # docker container create --name extract tmp/ubuntu20:build # docker container cp extract:/rust/build/target/release/EXECUTABLE_NAME ./ # docker container rm extract # fi Edit: reddit did terrible things to formatting, this will hopefully be fixed now
2 of 2
1
Eugay is correct, but also want to add that instead of statically compiling with musl, you can also decide to maintain a "Ubuntu 20.04" version. To do so, just put your source code onto Ubuntu 20.04 and compile it there. The resulting binary will then be able to run on Ubuntu 20.04.
Find elsewhere
🌐
Stack Exchange
unix.stackexchange.com › questions › 732133 › glibc-2-34-not-found
glibc - `GLIBC_2.34' not found - Unix & Linux Stack Exchange
I am trying to run an up in my raspberry pi (4b with latest bullsey) which I have cross-compiled. The error am encountering is: “/lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found” ...
🌐
BeagleBoard
forum.beagleboard.org › general discussion
glibc version mismatch with Ubuntu 22.04 cross-compile to BBG Bullseye 2022-05-01 - General Discussion - BeagleBoard
May 12, 2022 - I’m updating the host OS from Ubuntu 20.04 to 22.04 (Jellyfish). However, this cause a version problem with GLIBC when cross-compiling: ./helloworld: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34’ not found (required by ./helloworld) Any suggestions on how I can best force the ...
🌐
GitHub
github.com › lensapp › lens › issues › 8210
Glibc 2.34 and ubuntu 20.04 · Issue #8210 · lensapp/lens
May 9, 2025 - Describe the bug After the last update lens is not opening on ubuntu 20.04. I got the below error when running: A JavaScript error occurred in the main process Uncaught Exception: Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /opt/Lens/resources/app.as...
Author   lensapp
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
[SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found / Newbie Corner / Arch Linux Forums
March 7, 2022 - I recently started using my laptop again and found out that I need to update my system, so I tried to update using `pacman -Syy`. ... sudo: /usr/lib/libc.so.6: version GLIBC_2.34 not found (required by sudo) sudo: /usr/lib/libc.so.6: version GLIBC_2.34 not found (required by /usr/lib/sudo/libsudo_util.so.0)
🌐
Manjaro Linux
forum.manjaro.org › support
/usr/lib/libc.so.6: version `GLIBC_2.34' not found - Support - Manjaro Linux Forum
March 4, 2022 - When I try to run commands I see this: ps -ef ps: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libgcc_s.so.1) I am unable to complete this package update process. pacman -Syyu :: Synchroniz…
Top answer
1 of 2
3

It should be noted that https://abrok.eu/stockfish/ is not official, author clearly says that the packages were compiled with gcc 11.2/mingw 10 on Ubuntu 21.10.
While you are running 20.04 LTS which is older, so has older libc and other core system components.

I see two possible solutions:

  • Official packages from the developer

    The StockFish package for Ubuntu lists the following URL as developer's web-site https://stockfishchess.org . So you should visit https://stockfishchess.org/download/linux/ and then download relevant software distribution. For the time of writing it maybe done programmatically as follows:

    cd ~/Downloads
    wget -c https://stockfishchess.org/files/stockfish_14.1_linux_x64_avx2.zip
    unzip stockfish_14.1_linux_x64_avx2.zip
    cd stockfish_14.1_linux_x64_avx2
    chmod +x stockfish_14.1_linux_x64_avx2
    

    and then run it as ./stockfish_14.1_linux_x64_avx2.

    Note: it runs even on 18.04 LTS, does not complain about libc.

  • Some third-party PPA

    Finding PPA for StockFish is possible. It will end with for example StockFish 12.2 deb-package for 20.04 LTS, which may be installed by using below commands:

    sudo add-apt-repository ppa:savoury1/games
    sudo apt-get update
    sudo apt-get install stockfish
    

    Note: I'm not sure about AVX2 optimisation here.

    Reverting to default 11.1 version is possible by using below commands:

    sudo apt-get install ppa-purge
    sudo ppa-purge ppa:savoury1/games
    
2 of 2
0

I had the same issue with Stockfish 15 on Ubuntu 20.04. However it's not too difficult to compile from source following the directions at https://github.com/official-stockfish/Stockfish#compiling-stockfish-yourself-from-the-sources

cd src
make help

then check the latest arch supported, ex. grep bmi2 /proc/cpuinfo and make with the appropriate arch:

make net 
make build ARCH=x86-64-bmi2
🌐
A. Christian Toscano
achris.me › posts › fix-glibc
How to fix version GLIBC not found | A. Christian Toscano
September 7, 2023 - The only way to fix this error is by matching the GLIBC provided on by your OS and the one required by the software you want to run. So you can either use an older version of the OS or a more recent version of the software you are trying to run.
🌐
Reddit
reddit.com › r/flatpak › glibc_2.34 nof found error when building and installing my app flatpak
r/flatpak on Reddit: GLIBC_2.34 nof found error when building and installing my app flatpak
December 20, 2022 -

Hi,

I have built a flatpak from my flutter app and everything went ok. These were the commands I ran:

tar -C build/linux/x64/release/bundle -acvf GM-Linux-Portable.tar.gz

flatpak-builder --force-clean build-dir com.playnite.GM.json

flatpak-builder --user --install --force-clean build-dir com.playnite.GM.json

flatpak run com.playnite.GM

When I try to run the app I get the error -> gm: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by gm). Shouldn't these dependencies be installed along my app?

As I am pretty new to flatpak, I have read a lot of information around but did not find any solution. Any help would be greatly appreciated.

🌐
Stack Overflow
stackoverflow.com › questions › 76335067 › getting-glibc-2-34-not-found-error-while-running-go-geos-package-on-ubuntu-20
glibc - Getting `GLIBC_2.34` not found error while running go-geos package on Ubuntu 20.04 - Stack Overflow
NOTE: This is my first time asking on stackoverflow. Let me know if I need to add something more to my question. ... You compiled the package linked against a different version of glibc than on the target platform.
🌐
Ask Ubuntu
askubuntu.com › questions › 1526185 › how-to-install-glibc-2-34-on-ubuntu-20-04
How to install GLIBC_2.34 on Ubuntu 20.04 - Ask Ubuntu
September 9, 2024 - There really is only one workaround for this that is 100% SAFE: Get a copy of virtualbox or some other thing that can run your software through virtualization extensions (lets guest OS talk to hardware directly to some degree) and install a small copy of your favorite GLIBC 2.34 OS operating system on that. This is the best option (for why, see my comment in the question above). ... Some hardware devices may still be emulated depending on whether or not they support virtualization (ensure you turn on Virtualization in your BIOS settings at boot)