I made two silly mistakes that have resulted in broken dependencies and broken boot state:
- tried to upgrade distros without ensuring all packages were up-to-date first
- tried to go directly from buster to bookworm
The result is:
Code: Select all
root@finnix:/# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
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.36-9+deb12u1 is installed
libc-dev-bin : Depends: libc6 (< 2.29) but 2.36-9+deb12u1 is installed
libc6-dev : Depends: libc6 (= 2.28-10+deb10u2) but 2.36-9+deb12u1 is installed
locales : Depends: libc-bin (> 2.36) but 2.28-10+deb10u2 is installed
openssh-server : Depends: openssh-client (= 1:9.2p1-2) but 1:7.9p1-10+deb10u2 is installed
Depends: runit-helper (>= 2.14.0~) but it is not installed
Depends: libcrypt1 (>= 1:4.1.0) but it is not installed
Depends: libselinux1 (>= 3.1~) but 2.8-1+b1 is installed
Depends: libssl3 (>= 3.0.8) but it is not installable
Recommends: xauth but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
apt-get install libc6/bullseye locales/bullseye libc6-dev/bullseye libc-dev-bin/bullseye libgcc-s1/bullseyeor pinning them to a version like
apt-get install libc6=2.28-10 locales=2.28-10 libc-dev-bin=2.28-10 libgcc-s1=2.28-10I've tried running
apt --fix-broken installwhich fails with:
Code: Select all
/usr/bin/python3: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10