So i decide again unpack all downloaded packages.

~/debs$ ls
libc6_2.36-9+deb12u9_amd64.deb      libc-bin_2.36-9+deb12u9_amd64.deb
libc6-dev_2.36-9+deb12u9_amd64.deb  libc-dev-bin_2.36-9+deb12u9_amd64.deb
~/debs$ sudo dpkg -i *.deb

And suddenly on this attempt there are successfully unpack without a problem.

Next step was ofcourse sudo apt install build-essential, and it is install successfully too.

Answer from Alex Sindre on Stack Overflow
🌐
Debian
packages.debian.org › sid › libc6
Debian -- Details of package libc6 in sid
/ Packages / sid (unstable) / libs / libc6 · [ bullseye ] [ bullseye-updates ] [ bookworm ] [ trixie ] [ forky ] [ sid ] [ experimental ] [ Source: glibc ] Bug Reports · Developer Information · Debian Changelog · Copyright File · Debian Patch Tracker ·
Discussions

[HowTo] Upgrade libc6 on Debian Stable (Wheezy) - Linux & Unix
[HowTo] Upgrade libc6 on Debian Stable (Wheezy) - posted in Linux & Unix: The last stable libc6 version is the v2.13. This is something that has been bothering me the last days. The update is needed to run Steam, Popcorn Time and some other apps. There is an unofficial installer for Steam that ... More on bleepingcomputer.com
🌐 bleepingcomputer.com
May 18, 2026
Is it safe to manually upgrade libc6 on debian stretch?

Question: is it safe to compile libc.so.6 manually and upgrade it to 2.28?*

No.

Is there a better way to do this?

https://people.debian.org/~gwolf/raspberrypi3/20190206/

https://wiki.debian.org/RaspberryPi3

https://packages.debian.org/buster/iptables

More on reddit.com
🌐 r/linuxquestions
6
7
March 26, 2019
How do you upgrade glibc on Debian? - Stack Overflow
I was able to install libc6 2.17 in Debian Wheezy by editing the recommendations in perror's answer: ... 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 ... After updating libc6, restart the computer, and you should ... More on stackoverflow.com
🌐 stackoverflow.com
April 17, 2014
Killed my system by accidentally upgrading libc6 to sid version.
The best option I can think of is to boot a live Debian CD, mount your broken partitions, and then try something like apt -o RootDir=/mnt install libc6=. I'm not 100% sure that will actually work but it's the closest thing I can think. You'll have to specify a specific version to try to get it to force the downgrade. If that doesn't work then I'd just back up your data and reinstall. More on reddit.com
🌐 r/debian
9
3
March 2, 2024
🌐
Debian
packages.debian.org › bullseye-updates › libc6
Debian -- Details of package libc6 in bullseye-updates
Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others · Tags: Role: Shared Library
🌐
BleepingComputer
bleepingcomputer.com › bleepingcomputer forums › alternative operating systems support › linux & unix
[HowTo] Upgrade libc6 on Debian Stable (Wheezy) - Linux & Unix
May 18, 2026 - [HowTo] Upgrade libc6 on Debian Stable (Wheezy) - posted in Linux & Unix: The last stable libc6 version is the v2.13. This is something that has been bothering me the last days. The update is needed to run Steam, Popcorn Time and some other apps. There is an unofficial installer for Steam that ...
🌐
LinuxQuestions.org
linuxquestions.org › questions › debian-26 › to-ensure-the-current-upgraded-debian-testing-has-libc6-2-28-a-4175691411
To ensure the current upgraded Debian testing has libc6 > 2.28
Tried to have debian testing by upgrade it via apt package manager, so it was done Code: cat /etc/debian_version /etc/os-release bullseye/sid
🌐
Reddit
reddit.com › r/linuxquestions › is it safe to manually upgrade libc6 on debian stretch?
r/linuxquestions on Reddit: Is it safe to manually upgrade libc6 on debian stretch?
March 26, 2019 -

I'm running raspbian, which is based on debian stretch.

I need a newer version of iptables, namely 1.8, instead of the 1.6 version shipped with the distro.

I could compile iptables 1.8 fine, but the installed libxtables.so.12 is now too old (version 1.6.0 from the repo). If I replace it with the newer lib compiled along with iptables 1.8, I get a dependency error saying I need libc6 2.28, instead of the currently installed 2.24.

Question: is it safe to compile libc.so.6 manually and upgrade it to 2.28?*

Is there a better way to do this?

Find elsewhere
🌐
Debian
packages.debian.org › sid › amd64 › libc6 › download
Debian -- Package Download Selection -- libc6_2.42-16_amd64.deb
/ Packages / sid / libc6 / amd64 / Download · If you are running Debian, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website. You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this: deb http://ftp.de.debian.org/debian sid main ·
Top answer
1 of 2
1

Following the comment response...

Start by checking that when you run a program you get a copy of the dynamic linker that does not involve that path. You should see:

$ ldd /bin/ls | grep ld-linux
    /lib64/ld-linux-x86-64.so.2 (0x00007fc695aef000)

(The hex address may differ.) This file should be a symlink pointing to /lib/x86_64-linux-gnu/ld-2.13.so which should not be a symlink and certainly shouldn’t end up at ld-2.11.2.so.

Assuming this all looks right it should be safe to go ahead and rename /lib/ld-2.11.2.so out of the way (though I would have rescue media to hand nevertheless). Don’t delete it until you’re sure everything’s still OK, in case it turns out that you need to put it back!

You may well find there are complaints about other leftover files, which can be check and dealt with in much the same way.

Obviously this advice is not directly tested!

2 of 2
1

I had this problem. . .finally fixed it by

  1. chroot-ing into the damaged/ stalled system, where I
  2. mv'ed a bunch of lib.so's out of lib/i38 into a temp folder in that partitions /root and
  3. creating symlinks to each of these. At this point it became possible to
  4. boot into that partition and then
  5. upgrade as usual. ( The exact list of files does not spring to mind and will anyway probably vary from system to system - it included the GNU-threads lib and some others, each of which raised the dreaded - lib in unexpected location message) After the upgrade the new libs will be in the usual /lib/i386( or your equivalent) and the LSB dependency boot will have created fresh symlinks for you. When satisfied that all is well you can then destroy the temp folder and the .so's moved there earlier. Hope this may help...
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.

🌐
Debian
packages.debian.org › bullseye › libc6
Debian -- Details of package libc6 in bullseye
Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others · This page is also available in the following languages (How to set the default document ...
🌐
Server Fault
serverfault.com › questions › 1044710 › apt-get-libc6-upgrade-needed-but-cant-be-installed-kernel-update-needed-but-c
debian - apt-get: libc6 upgrade needed but can't be installed; Kernel update needed but can't be done like anything else - Server Fault
December 2, 2020 - The funny thing is, the kernel can't be updated since apt dist-upgrade doesn't work due to the above error. ... libc6: Installed: 2.24-11+deb9u4 Candidate: 2.28-10 Version table: 2.28-10 500 500 http://httpredir.debian.org/debian buster/main amd64 Packages *** 2.24-11+deb9u4 100 100 ...
🌐
Debian User Forums
forums.debian.net › viewtopic.php
how do i update libc6 - Debian User Forums
January 16, 2010 - Unpacking replacement libace-5.6.3 ... of libc6 on system is 2.3.6.ds1-13etch9+b1. libace-5.6.3 depends on libstdc++6 (>= 4.2.1); however: Version of libstdc++6 on system is 4.1.1-21. dpkg: error processing libace-5.6.3 (--install): dependency problems - leaving unconfigured Errors were encountered while processing: libace-5.6.3 I guess i need to update my libc6 ...
🌐
Server Fault
serverfault.com › questions › 782477 › how-to-upgrade-libc6-on-debian-7-1
how to upgrade libc6 on debian 7.1? - Server Fault
Upgrade your /etc/apt/source.list to Debian Jessie and upgrade libc6 and it's dependencies. That's what I would do. ... Replacing libc6 by recompiling just that package, or updating just that package is a recipe for disaster.
🌐
Debian
packages.debian.org › en › libc6
Debian -- Package Search Results -- libc6
bullseye (oldoldstable) (libs): GNU C Library: Shared libraries 2.31-13+deb11u13 [security]: amd64 arm64 armhf i386 also provided by: libc6-udeb · bullseye-updates (libs): GNU C Library: Shared libraries 2.31-13+deb11u5: amd64 arm64 armhf i386 also provided by: libc6-udeb
🌐
Reddit
reddit.com › r/debian › killed my system by accidentally upgrading libc6 to sid version.
r/debian on Reddit: Killed my system by accidentally upgrading libc6 to sid version.
March 2, 2024 -

Hello everyone, I am currently running a buster system and accidentally upgraded my libc6 to the latest sid version. I am trying to revert to the old version, but when using:
apt-get libc6=...
Bu I get the error message:
/usr/bin/python3: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory Does someone have an Idea how I can fix that? Because it seems i need libc6 to install libc6...

SOLVED: For anyone stumbling into this, or a similar error in 6 years:
Here is my solution, which is heavy inspired by this post.
1.Use a boot-USB to get into recovery mode, pick your partition and start a shell on the partition.
2. Download the libc6 version you want for example with wget.
3. Extract the package with dpkg -x <pagk.deb> ./newlib
4. Now quit and change to the shell on your Recovery-USB
5. Replace the new library with the old cp -avf newlib/lib/x86_64-linux-gnu/* /target/lib/x86_64-linux-gnu/
6. You should be able to boot again. apt-get should work now to.
7. Reinstall all broken packeges (including libc6) with apt get.

🌐
Stack Exchange
unix.stackexchange.com › questions › 637105 › to-ensure-the-current-upgraded-debian-testing-has-libc6-2-28
upgrade - To ensure the current upgraded Debian testing has libc6 > 2.28 - Unix & Linux Stack Exchange
March 2, 2021 - $ cat /etc/debian_version /etc/os-release bullseye/sid PRETTY_NAME="Debian GNU/Linux bullseye/sid" NAME="Debian GNU/Linux" and listed all to ensure a newer libc6, but surprisingly it's not upgraded yet so then:
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › software & applications
How can I update libc6 ? - Linux Mint Forums
March 28, 2021 - Linux Mint Forums · Welcome to the Linux Mint support forums · Skip to content · Quick links · Unanswered topics · Active topics · Search · Login · Register · Board index