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
🌐
Google Groups
groups.google.com › a › chromium.org › g › chromium-os-dev › c › 6tkifbfiQEA
Error libc.so.6: version `GLIBC_2.38' not found
January 8, 2025 - On Wed, Jan 8, 2025 at 1:25 PM ...bookworm/libc6 The apt shipped by Debian bookworm should also depend on that version of libc.so, so somehow you have a mismatched apt binary....
Discussions

Gpg: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by gpg)
So I have been trying to fix this myself in order to learn more but I am stuck with anything to do with pacman I have seen from other discussions here and on other forums different things and have followed many wiki’s and guides but no progress. Also currently /etc/pacman.conf is set to SigLevel ... More on forum.manjaro.org
🌐 forum.manjaro.org
0
0
December 21, 2023
GLIB : ERROR /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found
Hi, I’m working on GTK3 desktop application in cpp. I built my application on an ubuntu machine with (Ubuntu GLIBC 2.35-0ubuntu3.5) 2.35 and i was able to run this application on that machine. But when i tried to run the application in different ubuntu machine with (Ubuntu GLIBC 2.31-0ubuntu9.14) ... More on discourse.gnome.org
🌐 discourse.gnome.org
9
0
January 24, 2024
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found
Hello, I’m having a problem while running container. In my project there are 3 different containers (one for the backend, one for the frontend and one for mongodb), the last two works fine but the first (the one for the backend) gives me the following error: backend-1 | backend: ... More on forums.docker.com
🌐 forums.docker.com
1
0
July 4, 2024
docker - /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found - Stack Overflow
I'm having a problem while running container. In my project there are 3 different containers (one for the backend, one for the frontend and one for mongodb), the last two works fine but the first (... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Reddit
reddit.com › r/linux4noobs › running into a version `glibc_2.38' not found error
r/linux4noobs on Reddit: Running into a version `GLIBC_2.38' not found error
April 7, 2024 -

What the title says. I'm trying to run a program, and even after installing its dependencies (sdl2, freetype, harfbuzz, onnxruntime, darling) and restarting the system (I know most of the time it doesn't need, but just in case) it keeps saying the same issue.

/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found

What I've seen after searching for a bit is that either I have to build the program myself, or use a different version of linux. I MIGHT be ok, since I was planning to make a new installation when Kubuntu 24.04 releases eventually (I mean, it WILL release, right???) but I really want to give this a try beforehand.

Running a Kubuntu 22.04 distro that updated itself from a 20.04 one. Hardware is full amd and decent enough? I don't think it affects this issue in specific.

Top answer
1 of 3
65

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.

2 of 3
28

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:

  1. Download libc6 and libc6-dev from Ubuntu 12.04 LTS

  2. 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/
    
  3. Run your command with specified LD_LIBRARY_PATH:

    $ LD_LIBRARY_PATH=/home/user/fakeroot/lib/x86_64-linux-gnu/ YOUR_COMMAND
    
  4. My 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.

🌐
Manjaro Linux
forum.manjaro.org › support
Gpg: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by gpg) - Support - Manjaro Linux Forum
December 21, 2023 - So I have been trying to fix this myself in order to learn more but I am stuck with anything to do with pacman I have seen from other discussions here and on other forums different things and have followed many wiki’s and guides but no progress. Also currently /etc/pacman.conf is set to SigLevel ...
🌐
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?...
🌐
Docker Community
forums.docker.com › docker hub
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found - Docker Hub - Docker Community Forums
July 4, 2024 - Hello, I’m having a problem while running container. In my project there are 3 different containers (one for the backend, one for the frontend and one for mongodb), the last two works fine but the first (the one for the backend) gives me the following error: backend-1 | backend: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by backend) backend-1 | backend: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by backend) backend-1 | backend...
Find elsewhere
🌐
Red Hat
access.redhat.com › solutions › 7077895
oc command fails due to missing glibc library - Red Hat Customer Portal
March 9, 2026 - oc commands fail with the following error: $ oc version oc: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by oc) oc: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by oc) oc: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by oc)
🌐
Cylab
cylab.be › blog › 388 › a-solution-to-version-glibc-2xx-not-found
A Solution to Version GLIBC_2.XX Not Found | cylab.be
January 15, 2025 - Replace /path/to/your/libc.so.6 with the actual path to the required libc.so.6 (/opt/glibc-2.XX/lib/libc.so.6 in our example). The LD_LIBRARY_PATH environment variable specifies directories where the dynamic linker should search for shared libraries. You can point it to the directory containing the required libc.so.6. LD_LIBRARY_PATH=/path/to/your/library/dir:$LD_LIBRARY_PATH ./my-binary · This will direct the dynamic linker to look in the specified directory for shared libraries before searching the default paths. The GNU C Library (glibc) is a vital component of the Linux system, providing core functionality to applications.
🌐
GitHub
github.com › juce-framework › JUCE › issues › 1418
[Bug]: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found · Issue #1418 · juce-framework/JUCE
August 4, 2024 - Detailed steps on how to reproduce the bug I have a bug on LinuxMint when i start a Projucer on the terminal. But i have glibc ./Projucer: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by ./Projucer) ./Projuce...
Author   juce-framework
🌐
NVIDIA Developer Forums
forums.developer.nvidia.com › robotics & edge computing › jetson systems › jetson orin nano
Version `GLIBC_2.38' not found after updating of packages - Jetson Orin Nano - NVIDIA Developer Forums
May 7, 2025 - Hello, I recently updated my project to Python 3.12, therefore I had to update some other packages (torch, torchvision, onnxruntime-gpu). The versions of these packages are downloaded from the jetson python index and are targeted for CUDA 12.8. When running my project I encounter this error that is probably raised by package onnxruntime-gpu: ImportError: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /home/myproject/.venv/lib/python3.12/site-packages/onnxruntime/...
🌐
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.
🌐
DEV Community
dev.to › abbazs › how-to-fix-issue-node-libx8664-linux-gnulibcso6-version-glibc228-not-found-required-by-node-3chb
How to fix issue "node: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.28' not found (required by node)"? - DEV Community
July 7, 2023 - Node.js has a dependency on a specific GLIBC version (in this case, version 2.28 or higher), and if the system's GLIBC version is older, it will result in this error. GLIBC is a crucial library that provides essential functions for programs ...
🌐
Hugging Face
huggingface.co › openai › gpt-oss-120b › discussions › 86
openai/gpt-oss-120b · ImportError: /lib64/libc.so.6: version `GLIBC_2.32' not found
Environment: GLIBC version: 2.28 Python: 3.12.8 PyTorch: 2.9.0.dev20250804+cu128 CUDA: 12.8 · Would it be possible to work around this issue by modifying or rebuilding the dependencies to match the existing GLIBC version? ... Please check my solution in the next post! ... I solved this issue by installing the glibc-2.32 and glibc-2.38 (since it also requires glibc-2.34). NOTE: my path is /projectnb/vkolagrp/brucejia. Please change it to yours. ... wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.32.tar.gz tar -zxvf glibc-2.32.tar.gz cd glibc-2.32 mkdir glibc-build && cd glibc-build mkdir /projectnb/vkolagrp/brucejia/glibc ../configure --prefix=/projectnb/vkolagrp/brucejia/glibc make -j"$(nproc)" make install
🌐
Medium
jeonghye-choi.medium.com › how-to-resolve-the-lib-x86-64-linux-gnu-libc-so-6-1a983bcf4721
How to Resolve the /lib/x86_64-linux-gnu/libc.so.6:
July 12, 2024 - The error /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found was caused by a mismatch in the glibc versions used in different stages of the Docker build process.
🌐
GitHub
github.com › nomic-ai › gpt4all › issues › 1438
After version==1.0.8 cannot even import the library anymore · Issue #1438 · nomic-ai/gpt4all
September 18, 2023 - System Info This is the error I received just at "from gpt4all import GPT4All" no errors at installation, all working perfectly. lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./lib/python3.9/site-packages/gp...
Author   nomic-ai