Do not install libc6 2.31-9 from Debian 11 ( bullseye ) on debian 10 (libc6 2.28-10), this will break your system. Upgrading to bullseye is more safe.

Answer from GAD3R on Stack Overflow
🌐
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. You have two options to continue : The first option is to migrate ...
🌐
FreeBSD
forums.freebsd.org › server and networking › emulation and virtualization
How to install GLIBC version 2.29 in the Linux Binary Compat layer? | The FreeBSD Forums
September 5, 2023 - I have installed the Linux Binary compatibility layer and installed activitywatch under /compat/ubuntu/opt/activitywatch, when I run it I get this error: ... [3756] Error loading Python lib '/compat/ubuntu/opt/activitywatch/aw-server/libpython3.9.so.1.0': dlopen: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /compat/ubuntu/opt/activitywatch/aw-server/libpython3.9.so.1.0) It says GLIBC_2.29 is not found, which is the error that is preventing me from using this program.
Discussions

glibc - Cannot install libc6 ver 2.29 /newer on debian buster - Stack Overflow
Do not install libc6 2.31-9 from Debian 11 ( bullseye ) on debian 10 (libc6 2.28-10), this will break your system. Upgrading to bullseye is more safe. ... Sign up to request clarification or add additional context in comments. ... New site design and philosophy for Stack Overflow: Starting February 24, 2026... I’m Jody, the Chief Product and Technology Officer at Stack Overflow. Let’s... ... 1 apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC... More on stackoverflow.com
🌐 stackoverflow.com
How to install GLIBC 2.29 or higher in Ubuntu 18.04 - Stack Overflow
Make new folder for ./configure files with mkdir ../glibc-build and cd ../glibc-build to it. Then run ../glibc-2.29/configure --prefix=/opt/glibc from the source while staying in glibc-build folder. And finally make && make install 2022-11-27T06:28:16.017Z+00:00 More on stackoverflow.com
🌐 stackoverflow.com
How do you upgrade glibc on Debian? - Stack Overflow
I heard I can do it using apt-get install libc6, but I need to add something to /etc/apt/sources.list to receive the newest glibc version. What should I do? More on stackoverflow.com
🌐 stackoverflow.com
Deltachat 0.104 on Debian Buster: glibc 2.29 error. Solved
Platform (linux/mac/windows): debian buster (10) Delta Chat Desktop Version: 0.104.0 Expected behavior: should run after successful dpkg -i Actual behavior: doesn't run Steps to reproduce the p... More on github.com
🌐 github.com
1
March 2, 2022
🌐
Debian
ftp.debian.org › debian › pool › main › g › glibc
Index of /debian/pool/main/g/glibc
Index of /debian/pool/main/g/glibc · Apache Server at ftp.debian.org Port 80
🌐
Debian
packages.debian.org › source › bullseye › glibc
Debian -- Details of source package glibc in bullseye
adep: binutils (>= 2.29) GNU assembler, linker and binary utilities · adep: g++-10 · GNU C++ compiler ·
🌐
Debian
packages.debian.org › source › buster › glibc
Client Challenge
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
Top answer
1 of 3
15

Disclaimer:
Some reported that their systems crashed after using this answer.
So anyone who is trying this, please be careful and make sure you create backups before trying it.


To my knowledge, libc6 2.29 is the latest version. And it is available for Ubuntu 19.04 (link).

If you want to install libc6 amd64, open this link to download it, then open the download folder in the terminal and run sudo dpkg -i libc6_2.29-0ubuntu2_amd64.deb

If you want to install libc6 i386, you can download it from this link, then open the download folder in the terminal and run sudo dpkg -i libc6_2.29-0ubuntu2_i386.deb


EDIT 06/01/2020:

As per now, libc6_2.29 does not exist anymore. However libc6_2.30 and lib6_2.31 are available via this link (2.31 is the official version for Ubuntu 20.04).
If you want to download a different version than the official one supported by your Ubuntu release (i.e 2.27 for 18.04, 2.30 for Ubuntu 19.10 ...) check this link.

Download the version that suits you, then open the download folder and run sudo dpkg -i <the_file_name>.

2 of 3
7

Don't do it. Here I'll leave an image of how dependent are your software packages on libc6 compiled for that specific library!!! https://sites.google.com/view/dependency-netwok/.

There you'll see a star shaped network and the node at the center (green colored) represents libc6. I suggest two possible solutions to your problem:

1. Add a compatible repository

Since it is r-base-core what you want, change the repository to a compatible one for your specific distribution.

For example: deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/

In your /etc/apt/sources.list file. By using you will be automatically be redirected to a nearby CRAN mirror. See https://cran.r-project.org/mirrors.html for the current list of CRAN mirrors.

sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-recommended

2. Upgrade

Another solution would be to upgrade your entire distribution to a more recent and compatible with what you want.

🌐
Launchpad
launchpad.net › debian › buster › +source › glibc
https://launchpad.net/debian/buster/+source/glibc
All versions of glibc source in Debian · Release · The package versions that were published when the distribution release was made. glibc 2.28-10+deb10u1 (main) glibc 2.28-10 (main) glibc 2.28-8 (main) glibc 2.28-7 (main) View changelog · Current version: 2.28-10+deb10u1 ·
Find elsewhere
🌐
Debian
packages.debian.org › source › testing › glibc
Details of source package glibc in trixie
October 1, 2022 - JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
Top answer
1 of 3
95

I was able to install libc6 2.17 in Debian Wheezy by editing the recommendations in perror's answer:

IMPORTANT

You need to exit out of your display manager by pressing CTRL+ALT+F1. Then you can stop x (slim) with sudo /etc/init.d/slim stop

(replace slim with mdm or lightdm or whatever)

Add the following line to the file /etc/apt/sources.list:

deb http://ftp.debian.org/debian experimental main

Should be changed to:

deb http://ftp.debian.org/debian sid main

Then follow the rest of perror's post:

Update your package database:

apt-get update

Install the glibc package:

apt-get -t sid install libc6-amd64 libc6-dev libc6-dbg

IMPORTANT

After updating libc6, restart the computer, and you should comment out or remove the sid source you just added (deb http://ftp.debian.org/debian sid main), or else you risk upgrading your whole distro to sid.

2 of 3
29

Your script contains errors as well, for example if you have dos2unix installed your install works but if you don't like I did then it will fail with dependency issues.

I found this by accident as I was making a script file of this to give to my friend who is new to Linux and because I made the scripts on windows I directed him to install it, at the time I did not have dos2unix installed thus I got errors.

here is a copy of the script I made for your solution but have dos2unix installed.

#!/bin/sh
echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list
apt-get update
apt-get -t sid install libc6 libc6-dev libc6-dbg
echo "Please remember to hash out sid main from your sources list. /etc/apt/sources.list"

this script has been tested on 3 machines with no errors.

🌐
GitHub
github.com › deltachat › deltachat-desktop › issues › 1006
Deltachat 0.104 on Debian Buster: glibc 2.29 error. Solved · Issue #1006 · deltachat/deltachat-desktop
March 2, 2022 - SOLUTION Use pinning to install the package libc6 from testing. ... Package: * Pin: release a=stable Pin-Priority: 900 Package: * Pin: release a=testing Pin-Priority: 650 · Update /etc/apt/sources.list and add a new entry for the testing repo ...
Author   deltachat
🌐
GitHub
github.com › sharkdp › bat › issues › 2106
GLIBC 2.29 required by bat_0.20.0_amd64.deb · Issue #2106 · sharkdp/bat
March 2, 2022 - If I'm not wrong, I need package libc6-dev>=2.29 but in Debian 10 there is only 2.28. ... Are the functionalities of GLIBC 2.29 essential to the program or could the latter be built with an older version? Maybe dependencies could be explicitly specified somewhere in the GitHub, especially when a breaking upgrade is required? NB: I've never experienced issues when installing and launching previous bat versions on my Debian 10.
Author   sharkdp
Top answer
1 of 2
3

First of all, don't put an alternate libc (or alternate version of your libc) in a path searched by the normal include and library search (both link-time and runtime library search) for your main system one. This is a recipe for disaster. Installing a different glibc in /usr/local/ does avoid clobbering your system one, but now you just have two installed in places where the same tools can see and use them.

To do this right, you really need a full separate toolchain (gcc, binutils) in some completely separate path (like ~/my_glibc_root/... or /opt/alt_glibc_root/...). I'm not sure if there's a recommended way to do this. The glibc build procedures in Linux From Scratch might be a good place to look for ideas. In theory it can be done in a single stage; I do that with musl libc in musl-cross-make by careful use of intermediate make rules in the gcc build system. But applying the same idea to glibc probably requires some extra care.

2 of 2
0

Second Try Command: In second try, I am using "-I" & "-L" GCC command options.

gcc -Wall -g -I/usr/local/glibc/include -o main main.c -L/usr/local/glibc/lib -Wl,--rpath=/usr/local/glibc/lib -Wl,--dynamic-linker=/usr/local/glibc/lib/ld-linux-x86-64.so.2

This command is almost correct. The thrd_create and thrd_join functions are defined in libpthread, which you didn't link against.

Add -pthread to your compile command, and the link should succeed.

P.S. R's advice of not installing alternate GLIBC into /usr/local is also a good one.

🌐
Debian
packages.debian.org › src:glibc
I Challenge Thee
I Challenge Thee · AI scrapers break the web, to use this page you'll need JavaScript enabled
🌐
GitHub
github.com › inkstitch › inkstitch › issues › 1537
Debian 10 missing GLIBC_2.29 · Issue #1537 · inkstitch/inkstitch
January 12, 2022 - Thought I'd install Ink/Stitch real quick on my Deb 10 box before a wipe-and-reinstall. Took out the old Ink/Stitch, unpacked the tar.gz, opened Lettering to look at the nifty new fonts, got this: [8395] Error loading Python lib '/home/silver/.config/inkscape/extensions/inkstitch/bin/libpython3.8.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.29...
Author   inkstitch
🌐
BeagleBoard
forum.beagleboard.org › general discussion
/lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by ./thermADC) - General Discussion - BeagleBoard
July 4, 2022 - Hello community, I have been trying to understand what is going wrong in executing a cross-built eclipse file for Beaglebone black, which takes the ADC values, converts the read value and outputs the converted temperature values onto the terminal screen. I can successfully compile and build the eclipse file and transfer it to the Beaglebone black, but when i try to execute (the file name is thermADC), i get the following error: debian@beaglebone:~$ ./thermADC ./thermADC: /lib/arm-linux-gnuea...
🌐
Debian
packages.debian.org › source › stable › glibc
Debian -- Details of source package glibc in bookworm
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser