Hi all,
I´m using Debian Buster in a virtual machine (KVM/qemu/virt-manager).
As I´m currently still on Debian 10 (Buster) it´s time to upgrade it to the latest version (Bookworm).
I tried to do so yesterday but my attempt failed, I´m sorry to say.
I wanted to upgrade the system directly from Buster to Bookworm. I´m not sure it was the right thing to do.
Should I have perhaps taken the route: Buster —> Bullseye —> Bookworm
Is it in theory possible to skip a version with the inline upgrade
As my first attempt failed I tried another method: upgrade to Bullseye first, but I seem to have run out of virtual disk space.
I need to enlarge it first.
Curiously enough the small disk space wasn´t the issue with my first attempt. Here I ran into difficulties of a different kind.
My steps were the following:
- take a snapshot of the VM (which proved to be the right thing to do)
- in Debian: unhold any kept-back packages
sudo apt update
sudo apt upgrade
- reboot the system
sudo apt dist-upgrade
sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/*.list
sudo apt update
sudo apt upgrade
sudo apt full-upgrade
- reboot the system
sudo apt autoremove
sudo apt clean
The first problem I ran into was:
The step “sudo apt update” after the sources have been changed to bookworm… I got the following message:
Hit:1 http://deb.anydesk.com all InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Ign:3 http://security.debian.org/debian-security bookworm/updates InRelease
Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
Err:5 http://security.debian.org/debian-security bookworm/updates Release
404 Not Found [IP: 146.75.118.132 80]
Hit:6 https://download.docker.com/linux/debian bookworm InRelease
Reading package lists... Done
E: The repository 'http://security.debian.org/debian-security bookworm/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
To address this issue, I temporarily disabled the security updates repository for Bookworm while still proceeding with the upgrade.
Once the correct repository is available, I may re-enable it, I guess.
So I commented out the lines:
# deb http://security.debian.org/debian-security bookworm/updates main
# deb-src http://security.debian.org/debian-security bookworm/updates main
It worked well but I finally ran into the main problem:
After sudo apt full-upgrade
(it downloaded all the packages but couldn´t install them): This was the last message I received:
"/usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object
file: No such file or directory
dpkg: Fehler beim Bearbeiten des Paketes libc6:amd64 (--configure):
»installiertes libc6:amd64-Skript des Paketes post-installation«-Unterprozess gab den Fehler
wert 127 zurück
Fehler traten auf beim Bearbeiten von:
libc6:amd64
Fehler: Zeitüberschreitung wurde erreicht
needrestart is being skipped since dpkg has failed". After that I wanted to restart but the system won´t start anymore.
Sorry, it´s in German.
Basically it´s this:
- Error processing the package libc6:amd64 (–configure)
- post-installation sub-process: error 127
- libc6:amd64: error editing / timeout
I rebooted but couldn´t log in anymore.
Hmm, as this procedure failed, what would you suggest is the wisest course for doing an inline upgrade from Debian Buster to Bookworm
Many thanks in advance
Cheers from Rosika