As j0h described, I was able to solve my problem. Here is what I have done:

  1. I read at Wikipedia about glibc. Glibc (better known as GNU C Library) has a fork for linux which is called libc6. Libc6 is available via apt.
  2. Run apt-get update to update the database.
  3. Use apt-cache policy libc6 to find out the installed version and the candidate version, whereas the installed version can be also shown with ldd --version.
  4. Install the new candidate version with apt-get install libc6
  5. Check the new version again by doing step 3 again to see your success.
Answer from eDeviser on askubuntu.com
Discussions

How to install GLIBC 2.29 or higher in Ubuntu 18.04 - Stack Overflow
My Ubuntu version is Ubuntu 18.04.6 LTS and when I am checking for the latest version, it's showing that the software is up to date. As I go through the glibcc error, it requires an Ubuntu version greater than 18. How can I update the version? More on stackoverflow.com
🌐 stackoverflow.com
NodeJS upgrade breaks ubuntu 18.04 because of GLIBC 2.28
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 lik... More on github.com
🌐 github.com
4
August 29, 2023
Oracle Linux: How to Update the glibc Package on Oracle Linux 8
Applies To: Oracle Cloud Infrastructure Oracle Linux 8 Goal: Ensure the glibc package is updated correctly on Oracle Linux 8. More on community.oracle.com
🌐 community.oracle.com
January 2, 2025
How to upgrade Glibc library in Ubuntu 22.04 - Stack Overflow
I am currently running a Ubuntu 22.04 VM. It has by default Glibc 2.35. Due to a security vulnerability, I am trying to upgrade it to 2.39. I followed the following steps to download the gzipped bi... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Linux Mint Forums
forums.linuxmint.com › board index › chat › chat about linux mint
Has anyone made any attempt to upgrade glibc? - Linux Mint Forums
January 27, 2024 - Most of the libraries problems (ffmpeg 4.4.x, ffmpeg 5, ffmpeg 6, Qt 5.15, Qt 6...) can be solved by the use of PPAs or by compiling these libraries. But, even after those libraries upgrades, one problem remains: glibc, and its library "libc.so.6". On Mint 21.x, its version is 2.35: ... ldd --version ldd (Ubuntu GLIBC 2.35-0ubuntu3.6) 2.35 Copyright © 2022 Free Software Foundation, Inc.
🌐
Puppy Linux Discussion Forum
forum.puppylinux.com › board index › puppy linux main › house training › users help
How exactly do you update glibc? - Puppy Linux Discussion Forum
Thanks very much for the info on how you did an update!! You seem to understand what this topic is about. ... Not by compiling. I don't do this sort of thing myself (I agree with @fredx181's sentiment), but from what I've gathered, most folks get an __already compiled__ glibc from somewhere (from newer Ubuntu/Debian depending on Puppy's upstream distro), usually in form of a package, and then transplant it into the old puppy (by deleting the old one, and then put in the new one).
🌐
Liquid Web
liquidweb.com › home › how to update the glibc (gnu libc) in centos / red hat
How to Update the glibc (GNU libc) in CentOS / Red Hat | Liquid Web
December 3, 2024 - Looking to update glibc (GNU libc) in CentOS or Red Hat? Learn how to upgrade this critical library and ensure your system’s stability and security.
🌐
Ubuntu
launchpad.net › ubuntu › +source › glibc
glibc package : Ubuntu
GLibC 2.42 is older than the current packaged version.
Find elsewhere
🌐
Zhihu
zhihu.com › en › answer › 2724996720
How to upgrade glibc from 2.31 to 2.32 on Ubuntu 20.4?
Can you accept that your future child will take the mother's surname · Actually, I still support it. If it's a two-way marriage, the economic burden on families with sons would be reduced by more than a little.Actually, I still support it. If it's a two-way marriage, the economic burden on ...
🌐
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 - Before installing multiple glibc libraries, ensure that your system is up to date. sudo apt update [On Debian-based Systems] sudo yum update [On RedHat-based Systems]
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-newbie-8 › why-is-it-not-recommended-to-upgrade-glibc-4175512842
[SOLVED] Why is it not recommended to upgrade glibc?
July 31, 2014 - Why is it not recommended that you upgrade glibc on a linux system? Glibc is a strongly versioned library, so anything built against the old glibc
🌐
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
🌐
UbuntuUpdates
ubuntuupdates.org › package › core › noble › universe › updates › glibc
UbuntuUpdates - Package "glibc" (noble 24.04)
This package is just an umbrella for a group of other packages, it has no description. Description samples from packages in group: GNU C Library: sources GNU C Library: Precompiled locale data GNU C Library: Name Service Cache Daemon · Deleted packages are displayed in grey
🌐
Cache-miss
cache-miss.tech › blog › upgrade-glibc-in-ubuntu-1604
Upgrading Glibc on Ubuntu 16.04 | cache missing
January 11, 2025 - Upgrade Glibc on Ubuntu 16.04 to meet the requirements of VSCode Remote Development.
🌐
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.asar.unpacked/node_modules/node-pty/build/Release/pty.node) at process.func [as dlopen] (node:electron/js2c/node_init:2:2569) at Module._extensions..node (node:internal/modules/cjs/loader:1741:18) at Object.func [as .node] (node:electron/js2c/node_init:2:2796) at Module.load (node:internal/modules/cjs/loader:12
Author   lensapp
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.

🌐
Ubuntu
launchpad.net › ubuntu › jammy › +source › glibc
Jammy (22.04) : glibc package : Ubuntu
dbgsym in ubuntu impish. libc6: ... in ubuntu impish. ... The package versions that were published when the distribution release was made. ... Package versions containing security fixes for the released distribution. It is a good idea to have security updates turned on for your system. ... 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 ...
🌐
GitHub
github.com › ONLYOFFICE › Docker-DocumentServer › issues › 814
Update glibc(libc.so.6) to fresh version. · Issue #814 · ONLYOFFICE/Docker-DocumentServer
May 13, 2025 - Update glibc(libc.so.6) to fresh version.#814 · Copy link · Biggy905 · opened · on May 13, 2025 · Issue body actions · Hi! I'm getting an error after launch that libc.so.6 cannot find the file/directory. Info about host mashine: user@home:/$ uname -a Linux IF72 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 x86_64 x86_64 GNU/Linux user@home:/$ docker -v Docker version 28.1.1, build 4eba377 ·
Author   ONLYOFFICE