Categories
Development System & Network

Apt is broken (unmet dependencies)

So basically whenever I try to install or remove anything, it says:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libc-bin : Depends: libc6 (> 2.29) but 2.24-11+deb9u4 is to be installed
libc-dev-bin : Depends: libc6 (> 2.29) but 2.24-11+deb9u4 is to be      installed
 libc6-dev : Depends: libc6 (= 2.29-3) but 2.24-11+deb9u4 is to be installed
 libc6-i386 : Depends: libc6 (= 2.29-3) but 2.24-11+deb9u4 is to be installed
 libc6-x32 : Depends: libc6 (= 2.29-3) but 2.24-11+deb9u4 is to be     installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages     (or specify a solution).

And “apt –fix-broken install” doesn’t do anything because it would say:
This version of the GNU libc requires kernel version 3.2 or later. Please upgrade your kernel before installing glibc.

And then it fails.

Do you want to continue? [Y/n] 
Preconfiguring packages ...
(Reading database ... 46361 files and directories currently installed.)
Preparing to unpack .../libc6_2.29-3_amd64.deb ...
De-configuring libc6:i386 (2.24-11+deb9u4) ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.29-3_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Preparing to unpack .../archives/libc6_2.29-3_i386.deb ...
De-configuring libc6:amd64 (2.24-11+deb9u4) ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.29-3_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.29-3_amd64.deb
 /var/cache/apt/archives/libc6_2.29-3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Sad! Is there anything I could do? What is the manual way to fix apt? (Why it’s so easy to break apt, or it’s just me being retarded?)

I can’t upgrade kernel, it’s an VPS.
I’m running debian 9.9 with kernel version x86_64 Linux 2.6.32-042stab134.8

Leave a Reply

Your email address will not be published. Required fields are marked *