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 install GLIBC 2.29 or higher in Ubuntu 18.04
Which is that one of the modules I use (opencc) needs GLIBC 2.29 or superior. Ubuntu “standard” version is 2.27, so I checked if I could install the updated but I can’t. apt-cache madison libc6 libc6 | 2.27-3ubuntu1 | http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages More on digitalocean.com
🌐 digitalocean.com
2
June 6, 2020
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
glibc - Install glibc2.16 in Ubuntu 12.04 - Stack Overflow
I'm using Ubuntu 12.04 and the binary I'm trying to run needs glibc2.16, I tried updating glibc by using apt-get install libc6 but only glibc2.15 got installed , can someone suggest me how to get g... More on stackoverflow.com
🌐 stackoverflow.com
August 24, 2017
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 month 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
🌐
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.
🌐
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.
🌐
TecMint
tecmint.com › home › linux commands › how to install and run multiple glibc libraries in linux
How to Install and Run Multiple glibc Libraries in 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
Find elsewhere
🌐
Howtoinstall.me
howtoinstall.me › ubuntu › 18-04 › glibc-source
How to Install glibc-source in Ubuntu 18.04
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. Homepage: https://www.gnu.org/software/libc/libc.html ·
🌐
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?

🌐
Linuxier
linuxier.com › how-to-install-glibc-on-ubuntu
How to Install GLIBC on Ubuntu [22 Simple Steps] - Linuxier
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.
🌐
Installati.one
installati.one › home › how to install glibc-tools on ubuntu 22.04
How To Install glibc-tools on Ubuntu 22.04 | Installati.one
June 27, 2023 - In this tutorial we learn how to install glibc-tools package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.
🌐
LinuxVox
linuxvox.com › blog › install-glibc-ubuntu
Installing glibc on Ubuntu: A Comprehensive Guide — linuxvox.com
In the above code, libc6 is the package name for glibc on Ubuntu. The apt update command updates the local package list, and apt install libc6 installs the glibc library.
🌐
LinuxVox
linuxvox.com › blog › ubuntu-glibc-install
Mastering Ubuntu GLIBC Installation — linuxvox.com
The easiest way to install GLIBC on Ubuntu is through the Advanced Package Tool (APT).
🌐
Ubuntu
launchpad.net › ubuntu › +source › glibc
glibc package in Ubuntu
Launchpad may be missing release information for the head series or this package is linked to the wrong GLibC series.
🌐
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.
🌐
GitHub
github.com › jueve › build-glibc
GitHub - pitchsys/build-glibc: A note of building The GNU C Library(https://www.gnu.org/software/libc/) · GitHub
# apt-get install -y gcc make gdb # apt-get install -y texinfo gawk bison sed # apt-get install -y python3-dev python3-pip python-is-python3 # pip install pexpect · Almost of the descriptions below are written in /root/workdir/glibc/INSTALL.
Starred by 36 users
Forked by 3 users