You can try to download glibc from the official source and install it:

wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
tar -zxvf glibc-2.29.tar.gz
mkdir glibc-2.29/build
cd glibc-2.29/build
../configure --prefix=/opt/glibc
make 
make install

Pay attention to avoid breaking your OS environment: you need to specify the prefix and configure the separate path when you are using it.


See this answer on how to use the alternate GLIBC.

Answer from Dolphin on Stack Overflow
Discussions

Downgrade glibc on ubuntu 18.04 - Stack Overflow
Ubuntu 18.04 comes with glibc 2.27. This breaks some tools I'm currently using for a project. Is there any way for me to downgrade glibc in 18.04 to 2.26? apt-cache shows that only version 2.27 is More on stackoverflow.com
🌐 stackoverflow.com
Force libc6 (glibc) version upgrade on Ubuntu 18.04 LTS?
Disaster waiting to happen? Don't force the update of your libc. If the change is substantial you'll break your system. A lot of things installed depend on libc - that particular version that Ubuntu shipped - More on reddit.com
🌐 r/linuxquestions
7
0
September 4, 2019
glibc 2.28 requirement breaks compatibility with Ubuntu 18.04 LTS
It looks like the update to glibc 2.28 breaks compatibility with Ubuntu 18.04 LTS (EOL 2028). More on github.com
🌐 github.com
22
September 3, 2022
C++: Build program with Ubuntu 20.04 ARM machine executer (GLIBC 2.31) for Ubuntu 18.04 ARM device (GLIBC 2.27)
I am trying to build a C++ program for an Ubuntu 18.04 device, using the following ARM Ubuntu setup: machine: image: ubuntu-2004:202101-01 resource_class: arm.medium (note: there is no Ubuntu 18.04 ARM machine executor) However, since this image is Ubuntu 20.04, it uses GLIBC 2.31. More on discuss.circleci.com
🌐 discuss.circleci.com
1
0
August 31, 2021
🌐
UbuntuUpdates
ubuntuupdates.org › package › core › bionic › main › updates › glibc
UbuntuUpdates - Package "glibc" (bionic 18.04)
UbuntuUpdates.org · Raw Package Information · All versions of this package · Bug fixes · List of files in package · Repository home page · Deleted packages are displayed in grey. glibc-doc · libc-bin · libc-dev-bin · libc6 · libc6-amd64 · libc6-dbg · libc6-dev ·
🌐
Howtoinstall.me
howtoinstall.me › ubuntu › 18-04 › glibc-source
How to Install glibc-source in Ubuntu 18.04
Ubuntu · 18.04 · glibc-source · Install glibc-source by entering the following commands in the terminal: sudo apt update sudo apt install glibc-source · Description: GNU C Library: sources · This package contains the sources and patches which are needed to build glibc.
🌐
Ubuntu
launchpad.net › ubuntu › bionic › +source › glibc
Bionic (18.04) : glibc package : Ubuntu
Package versions including new features after the distribution release has been made. Updates are usually turned on by default after a fresh install. ... GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.
🌐
Ask Ubuntu
askubuntu.com › questions › 1320839 › how-to-compile-glibc-on-ubuntu-18-04-from-source-on-a-different-folder
compiling - how to compile glibc on ubuntu 18.04 from source on a different folder - Ask Ubuntu
March 3, 2021 - root@ziomario-desktop:# ldd --version ldd (Ubuntu GLIBC 2.27-3ubuntu1.4) 2.27 Copyright © 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions.
🌐
GitHub
gist.github.com › zchrissirhcz › ee13f604996bbbe312ba1d105954d2ed
Ubuntu Distro GCC GLIBC GLIBCXX C++-Standard versions · GitHub
GLIBC versions: https://launchpad.net/ubuntu/+source/glibc https://code.launchpad.net/ubuntu/+source/glibc
Find elsewhere
🌐
Ubuntu
packages.ubuntu.com › source › bionic › glibc
Ubuntu – Error
two or more packages specified (glibc bionic) · Content Copyright © 2026 Canonical Ltd.; See license terms. Ubuntu is a trademark of Canonical Ltd. Learn more about this site
🌐
Medium
medium.com › starters-publication › how-to-resolve-glibc-2-28-9552d5da066a
How to Resolve GLIBC_2.28 not Found Error on Ubuntu ...
April 10, 2025 - I know how frustrating it is to find this error ¨GLIBC_2.28 not Found¨ after upgrading to Node 18 on Ubuntu 18.04. This error shows on your terminal because you are still using an older version of GLIBC which comes with Ubuntu 18.04.
🌐
Reddit
reddit.com › r/linuxquestions › force libc6 (glibc) version upgrade on ubuntu 18.04 lts?
r/linuxquestions on Reddit: Force libc6 (glibc) version upgrade on Ubuntu 18.04 LTS?
September 4, 2019 -

I'm attempting to install Waterfox, but everytime I try to install it, I'm told that my libc6 version is outdated and that I need libc6 version 2.29-3ubuntu1 (I have version 2.27-3ubuntu1). The force version option in synaptic is disabled for some reason.

I'm using Ubuntu LTS 18.04 with the MATE Desktop (it was done via the server install .iso, if that matters).

I have already run sudo apt update && sudo apt upgrade -y twice to update the repositories and upgrade all packages on the system twice (in order to make sure nothing was missed the first time). I couldn't find anything in the /etc/apt/sources.list file, but maybe that's me being blind. Is there any way to force it to update?


I have since read some user's responses, and decided against this, as it is not worth breaking my entire system just to please a single program.

🌐
GitHub
github.com › pi-hole › FTL › issues › 1420
glibc 2.28 requirement breaks compatibility with Ubuntu 18.04 LTS · Issue #1420 · pi-hole/FTL
September 3, 2022 - It looks like the update to glibc 2.28 breaks compatibility with Ubuntu 18.04 LTS (EOL 2028).
Author   pi-hole
🌐
Ndholmes
ndholmes.com › cura-lulzbot-edition-ubuntu-18-04-and-glibc_2-28
Cura Lulzbot Edition, Ubuntu 18.04, and GLIBC_2.28 | Nathan D. Holmes
January 14, 2021 - And until somebody gets good support for the machine into something like Prusa Slicer, I’m stuck with Lulzbot’s last version of cura. Last time I think I managed to get glibc 2.28 installed somehow, but I decided I didn’t want to go that route this time. Instead, I just rebuilt 3.6.22 ...
🌐
Ask Ubuntu
askubuntu.com › questions › tagged › glibc
Newest 'glibc' Questions - Ask Ubuntu
I used pthread_kill() to detect if the thread exits. The centos does return ESRCH, if the thread exits. But Ubuntu doesn't. The Ubuntu version is 22.04.4. The following is the sample code: void* tfun()... ... I am trying to run some software on a ubuntu server, but it complains about GLIBC ...
🌐
Ask Ubuntu
askubuntu.com › questions › 1031006 › downgrade-glibc-on-ubuntu-18-04
Downgrade glibc on ubuntu 18.04 - Ask Ubuntu
Ubuntu 18.04 comes with glibc 2.27. This breaks some tools I'm currently using for a project. Is there any way for me to downgrade glibc in 18.04 to 2.26? apt-cache shows that only version 2.27 is available in the repo.
🌐
CircleCI
discuss.circleci.com › build environment
C++: Build program with Ubuntu 20.04 ARM machine executer (GLIBC 2.31) for Ubuntu 18.04 ARM device (GLIBC 2.27) - Build Environment - CircleCI Discuss
August 31, 2021 - I am trying to build a C++ program ... no Ubuntu 18.04 ARM machine executor) However, since this image is Ubuntu 20.04, it uses GLIBC 2.31....
🌐
Ubuntu
packages.ubuntu.com › search
Ubuntu – Package Search Results -- glibc
You have searched for packages that names contain glibc in all suites, all sections, and all architectures. Found 4 matching packages. jammy (22.04LTS) (doc): GNU C Library: Documentation 2.35-0ubuntu3.13 [security]: all
🌐
GitHub
github.com › actions › checkout › issues › 1442
NodeJS upgrade breaks ubuntu 18.04 because of GLIBC 2.28 · Issue #1442 · actions/checkout
August 29, 2023 - Recent nodejs upgrade to v20 is breaking some servers which doesn't have the GLIBC 2.28 such as ubuntu 18.04: I worked around by using the previous commit (f43a0e5) from the upgrade but I would like to use the latest version if its possi...
Author   actions