Following my Debian upgrade from Wheezy to Jessie, I wanted to upgrade to Buster while I'm at it.
I have updated my
sources.list file to use "buster":
deb http://ftp.fr.debian.org/debian/ buster main contrib non-free
Then I did an apt-get
update && upgrade then
dist-upgrade, which failed midway because my kernel wasn't up to date and
libc6 really wants at least a 3.2 kernel.
os-release tells me I'm on Buster.
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
But my kernel seems very old:
Linux vps54085 2.6.32-042stab127.2 #1 SMP Thu Jan 4 16:41:44 MSK 2018 x86_64 GNU/Linux
apt-cache search linux-image gives me a bunch of 4.19 images.
Now, I tried
apt-get install linux-image-amd64 but it fails because it's trying to upgrade libc6
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libc-dev-bin : Depends: libc6 (> 2.28) but 2.19-18+deb8u10 is to be installed
Recommends: manpages-dev but it is not going to be installed
libc6-dev : Depends: libc6 (= 2.28-10) but 2.19-18+deb8u10 is to be installed
linux-image-amd64 : Depends: linux-image-4.19.0-5-amd64 but it is not going to be installed
locales : Depends: libc-bin (> 2.28) but 2.19-18+deb8u10 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
apt-get -f install just retries installing libc6 (which fails because of the kernel).
I found posts telling to run
dpkg --configure -a but it fails on locales:
dpkg: dependency problems prevent configuration of locales:
locales depends on libc-bin (>> 2.28); however:
Version of libc-bin on system is 2.19-18+deb8u10.
dpkg: error processing package locales (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ls /var/cache/apt/archives/partial/ tells me this folder is empty.
I've also tried forcing the install of a previous version of libc6 but it's a mess of dependencies.
So, how do I rollback my apt-get upgrade so I can update my kernel?