Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

Installation • Debian 10 -> 12 botched - trying to fix

$
0
0
Hi all,

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:

root@finnix:/# apt-get upgradeReading package lists... DoneBuilding dependency tree       Reading state information... DoneYou 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 installedE: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
I have tried resetting the sources.list back to buster, back to bookworm, and also bullseye. I have tried installing specific versions of the packages erroring in the above log, e.g.
apt-get install libc6/bullseye locales/bullseye libc6-dev/bullseye libc-dev-bin/bullseye libgcc-s1/bullseye
or 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-10
I've tried running
apt --fix-broken install
which fails with:

Code:

/usr/bin/python3: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directoryE: 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
Any suggestions on how to fix my situation? I understand that wiping the disk and starting from scratch would be the best. Curious if there is any way to recover with the data and programs (DBes) installed, ie rolling back to buster or working through upgrade process to bullseye/bookworm.

Statistics: Posted by lebca — 2024-11-18 21:12 — Replies 3 — Views 120



Viewing all articles
Browse latest Browse all 3260

Trending Articles