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
Answer from Atur on askubuntu.com
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.

Discussions

How do I update GLIBC?
Your best bet would probably be to run do-release-upgrade to upgrade to Ubuntu 24.04. It probably not feasible to upgrade just glibc because it's a dependency of basically everything. More on reddit.com
🌐 r/Ubuntu
13
2
July 24, 2025
How do I update GLIBC in ubuntu?

How do I update it to 2.32?

Ideally, you don't. glibc is the most central library on the system. Basically everything depends on it. If something goes wrong during the update or if there is an unexpected incompatibility, the whole system breaks and you won't even be able to use the most basic tools to fix it.

Instead, you could upgrade your whole system to a newer version of Ubuntu. Or you could run a newer version of Ubuntu in a chroot/container/VM. Or you could complie openmw-validator for your version of glibc (assuming its source code is available and can be compiled).

More on reddit.com
🌐 r/linux4noobs
2
4
July 29, 2021
debian - Need to install glibc >= 2.14 on Wheezy - Unix & Linux Stack Exchange
You can add the switch --dry-run to see what will being installed before hand. You can see the status of the glibc package in the Debian Package Tracker System (Debian renamed eglibc package to simply glibc from Jessie onwards). You can also just wait for Jessie release on April 25. ... That did it. Following the debian instructions at debian.org/doc/manuals/apt... More on unix.stackexchange.com
🌐 unix.stackexchange.com
August 4, 2013
Good news for apt users: glibc-packages are now available in apt!
Whats glibc? More on reddit.com
🌐 r/termux
4
20
January 18, 2024
🌐
Kali Linux
kali.org › tools › glibc
glibc | Kali Linux Tools
1 week ago - GNU C Library: sources This package contains the sources and patches which are needed to build glibc. Installed size: 22.71 MB How to install: sudo apt install glibc-source
🌐
TecMint
tecmint.com › home › linux commands › how to install and run multiple glibc libraries in linux
How to Install Multiple glibc Libraries on Linux
June 13, 2024 - Next, install the required necessary packages for building and installing glibc on Debian-based distributions. sudo apt install build-essential libssl-dev libgdbm-dev libdb-dev libexpat-dev libncurses5-dev libbz2-dev zlib1g-dev gawk bison
🌐
Reddit
reddit.com › r/ubuntu › how do i update glibc?
r/Ubuntu on Reddit: How do I update GLIBC?
July 24, 2025 -

I’m currently using GLIBC 2.35 on Ubuntu 22.04, and I want to update it (for gaming purposes).

I’m also aware that updating it isn’t as simple as typing:

“sudo apt update GLIBC yada yada”

or whatever, so I’m not entirely sure how to update it properly without bricking my install.

Any ideas on what to do?

🌐
Ubuntu
launchpad.net › ubuntu › +source › glibc
glibc package : Ubuntu
Launchpad may be missing release information for the head series or this package is linked to the wrong GLibC series.
Find elsewhere
🌐
Medium
medium.com › starters-publication › how-to-resolve-glibc-2-28-9552d5da066a
How to Resolve GLIBC_2.28
April 10, 2025 - Make sure you are using Node js that is compatible with glibc version in Ubuntu 18.04. You can use Node Version Manager (nvm) to manage different Node.js versions. ... $ curl ~o~ https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash $ source ~/.nvm/nvm.sh
🌐
Linux From Scratch
linuxfromscratch.org › museum › lfs-museum › 2.4.4 › LFS-BOOK-INTEL-2.4.4-HTML › ch05-glibc.html
Installing Glibc
If it says it will replace old files by the newer Glibc files you can ignore that. Glibc does not know that it will end up on $LFS when the configure script is run. If your system had already a suitable GCC version installed, change to the $LFS/usr/src/glibc-build directory and install Glibc by running the following commands:
🌐
Linuxier
linuxier.com › how-to-install-glibc-on-ubuntu
How to Install GLIBC on Ubuntu [22 Simple Steps]
May 12, 2024 - To install GLIBC on Ubuntu, start by opening your terminal and checking your current version with lsb_release -a. Next, install essential building tools using sudo apt-get install build-essential.
🌐
Narkive
ubuntu-users.narkive.com › dYoKFRqi › how-to-know-the-glibc-version-and-update-it-in-ubuntu
how to know the GLIBC version and update it in ubuntu?
Post by loody How could I know the version of GLIBC I used in ubuntu? ( I type gcc -v, but I only see the version of gcc) And how could I update the glibc? (sudo apt-get install glibc?) karl at Lucid:~$ gcc -v Using built-in specs.
🌐
Reddit
reddit.com › r/termux › good news for apt users: glibc-packages are now available in apt!
r/termux on Reddit: Good news for apt users: glibc-packages are now available in apt!
January 18, 2024 -

To access it, you just need to install the glibc-repo package:

apt update
apt install glibc-repo -y
# After this you have access to glibc-packages
apt install glibc-runner -y
Top answer
1 of 3
2
Whats glibc?
2 of 3
1
Hi there! Welcome to r/termux , the official Termux support community on Reddit. Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair Termux Core Team are Termux developers and moderators of this subreddit. If you are new, please check our Introduction for Beginners post to get an idea how to start. I would like to remind that due to extremely high interest of certain parties in using Termux for violating personal rights and privacy and other kinds of nefarious usage, we chose to prohibit topics about hacking, phishing, fraud, other methods of digital threats and cyberstalking and their precursors such as OSINT or Kali Linux. This is stated in r/termux subreddit rules. No exception for educational purposes and pranks made. We also won't consider "legends" about lost or stolen accounts and urgent need of their recovery through Termux. The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/ . If you still have Termux installed from Google Play, please switch to F-Droid build. Do not use r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues . Application issues should be submitted to https://github.com/termux/termux-app/issues . I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
🌐
DigitalOcean
digitalocean.com › community › questions › how-install-glibc-2-29-or-higher-in-ubuntu-18-04
How install GLIBC 2.29 or higher in Ubuntu 18.04 | DigitalOcean
June 6, 2020 - echo “deb http://ftp.us.debian.org/debian testing main contrib non-free” >> /etc/apt/sources.list ... By default, the highest version of GLIBC for Ubuntu 18.04 should 2.27.
🌐
Its Linux FOSS
itslinuxfoss.com › home › ubuntu › how to install glibc on ubuntu 22.04
How to Install glibc on Ubuntu 22.04 – Its Linux FOSS
September 26, 2022 - Ubuntu 22.04 users can install “glibc” package by executing the command “sudo apt install glibc-source”. The “glibc” is a C library that supports GNU and Linux-based systems.
🌐
Pi19404
pi19404.github.io › pyVision › linux › 2022 › 04 › 14 › glibc
GLib 2.25 Installation on Ubuntu 16.04 · pyVision
April 14, 2022 - sudo apt-get install autoconf · mkdir ~/glibc_install; cd ~/glibc_install wget http://ftp.gnu.org/gnu/glibc/glibc-2.25.tar.gz tar zxvf glibc-2.25.tar.gz cd glibc-2.25 mkdir build cd build ../configure --prefix=/opt/glibc-2.25 make -j4 sudo make install export LD_LIBRARY_PATH=/opt/glibc-2.25/lib ·