Why won't glibc be maintained also on older versions of Debain ?
Debian 12 - APT "GLIBC_2.38 not found" issue after backup restore
Linux static builds broken on Debian Bookworm
How do you upgrade glibc on Debian? - Stack Overflow
I've updated to Debian 12 and found out that programs that I compile won't work on Debian 11, because the Glibc version on Debian 11 lag behind.
Is it intentional that in older versions of Debian the glibc isn't get updated ?
Glibc is a cruical part for compatability, and the fact that it is only backwards compatible means that the moment a developer update to the latest version of linux and compile its binaries, his program become obsolete for older versions of debian.
I have a Debian 12 install running on a laptop which has been great. I use BackInTime to take nightly backups of my OS in the event that the system becomes unstable or will not boot. Well that happened. I had a plasma issue occur and the machine failed to boot. So I restored one of my daily backups. Beautiful. Everything looks fine again. Until I try to upgrade with APT. The update looks fine on the surface at first. The apt update command finds a few packages that need to be updated. Nothing that appears to be related to GLIBC though.
Chrome is one of the updates as well as girl 1.2. If I perform the update, it processes as expected. However, if I run apt update or any other command after that, I receive the "GLIBC_2.38 not found error from anything I try to launch. Can anyone explain to me why this is happening?
Here are images of the apt update that processes successfully prior to the issue occurring.
And before anyone asks, no im not using Kali. Its vanilla Debian 12. That's just the user.Also a shot of APT sources. they are the standard sources.
Checking the gLibc version prior to the update shows that 2.36 is the current version
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.
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.