0

I need to upgrade libc-bin from the current stable version to 2.36 on Debian 11. I have tried to do so by downloading the .deb package from http://ftp.us.debian.org/debian/pool/main/g/glibc/libc-bin_2.36-8_amd64.deb, however when I install it with dpkg --install package.deb, I am then unable to use apt install because it asks me to run apt --fix-broken install and when I do so, it breaks some basic packages and tells me dpkg: warning: 'ldconfig' not found in PATH or not executable. After that, I cannot install anything else neither via apt install nor via dpkg --install package.deb.

How can I then install libc-bin 2.36 without breaking apt and without switching to the unstable channel?

giovi321
  • 817
  • 3
  • 13
  • 34
  • 1
    Don't do that, **especially** for libc – Nicolas Formichella Apr 06 '23 at 09:53
  • Debian calls this a "FrankenDebian" and strongly recommend against doing it, because it has a strong tendency to break debian systems. See [Advice For New Users On Not Breaking Their Debian System](https://wiki.debian.org/DontBreakDebian). If you need "bleeding edge" stuff (and are willing to put in the effort to deal with the occasional breakages inherent to an in-development unreleased distro), then use debian `sid` or `testing`. If you only want *some* new packages with less breakage, use Debian [backports](https://backports.debian.org/). Otherwise stick with `stable`. – cas Apr 06 '23 at 10:16

1 Answers1

1

This is a similar situation to the problem in your previous question: you need to keep all libc-related packages at the same version.

To upgrade to libc 2.36, you need to install at least the libc-bin, libc6, and locales 2.36 packages. Note that in doing so you will have started the upgrade towards Debian 12 and you should plan on finishing it soon after it’s released. It’s possible that some of your other installed packages will be broken by the upgrade and will have to be updated to versions in Debian testing. I highly recommend reconsidering the upgrade, unless you want to end up helping the Debian project test its upcoming release.

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
  • Yeah I realized this after three times of breaking Debian. Fortunately it is a virtual machine and I could start fresh pretty quickly! – giovi321 Apr 06 '23 at 10:30