ajstewart_lang
New Member
Greetings - first time poster so I hope I'm asking my question with sufficient detail. I'm running 20.04 on a Starlabs StarLite laptop. I was running some updates the other day - that look as if they include the 5.11.0-27 kernel and something went wrong. I can't boot into that kernel, although I can still boot into a previous kernel. These are the ones currently on my machine.
I can't seem to remove the corrupted 5.11 kernel with `sudo apt remove` (nor apt-get purge) as I end up with the following error:
(nor sudo apt-get purge linux-image-5.11.0-27-generic` produces a similar error related to unmet dependencies.
When I run `apt --fix-broken install` this happens:
I note I don't have `linux-generic-hwe-20.04` but am not sure if that's related - I can't install it anyway. Neither with the below or with `
sudo apt-get install --install-recommends linux-generic-hwe-20.04
I've been on multiple Linux sites which all seem to suggest that I should be able to (re)install it - but the same dependency issue arises.
All suggestions as to what I might need to do to fix this would be very much appreciated! I basically want to be able to delete the corrupted 5.11 kernel and reinstall (possibly including linux-generic-hwe-20.04). I kind of feel I'm going round in circles...
EDIT: I do have a Timeshift backup but was thinking it might be good for me (character building even!) to understand how to fix this manually...
thanks
Andrew
Code:
$ dpkg -l | grep linux-image
rH linux-image-5.11.0-27-generic 5.11.0-27.29~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.4.0-26-generic 5.4.0-26.30 amd64 Signed kernel image generic
rc linux-image-5.4.0-33-generic 5.4.0-33.37 amd64 Signed kernel image generic
rc linux-image-5.4.0-37-generic 5.4.0-37.41 amd64 Signed kernel image generic
rc linux-image-5.4.0-39-generic 5.4.0-39.43 amd64 Signed kernel image generic
rc linux-image-5.4.0-40-generic 5.4.0-40.44 amd64 Signed kernel image generic
rc linux-image-5.4.0-42-generic 5.4.0-42.46 amd64 Signed kernel image generic
rc linux-image-5.4.0-45-generic 5.4.0-45.49 amd64 Signed kernel image generic
rc linux-image-5.4.0-47-generic 5.4.0-47.51 amd64 Signed kernel image generic
rc linux-image-5.4.0-48-generic 5.4.0-48.52 amd64 Signed kernel image generic
rc linux-image-5.4.0-51-generic 5.4.0-51.56 amd64 Signed kernel image generic
rc linux-image-5.4.0-52-generic 5.4.0-52.57 amd64 Signed kernel image generic
rc linux-image-5.4.0-53-generic 5.4.0-53.59 amd64 Signed kernel image generic
rc linux-image-5.4.0-54-generic 5.4.0-54.60 amd64 Signed kernel image generic
rc linux-image-5.4.0-56-generic 5.4.0-56.62 amd64 Signed kernel image generic
ii linux-image-5.4.0-58-generic 5.4.0-58.64 amd64 Signed kernel image generic
rc linux-image-5.8.0-36-generic 5.8.0-36.40~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-45-generic 5.8.0-45.51~20.04.1+1 amd64 Signed kernel image generic
rc linux-image-5.8.0-48-generic 5.8.0-48.54~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-49-generic 5.8.0-49.55~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-50-generic 5.8.0-50.56~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-53-generic 5.8.0-53.60~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-55-generic 5.8.0-55.62~20.04.1 amd64 Signed kernel image generic
rH linux-image-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Signed kernel image generic
ii linux-image-5.8.0-63-generic 5.8.0-63.71~20.04.1 amd64 Signed kernel image generic
I can't seem to remove the corrupted 5.11 kernel with `sudo apt remove` (nor apt-get purge) as I end up with the following error:
Code:
$ sudo apt remove linux-image-5.11.0-27-generic --verbose-versions
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.
linux-modules-5.11.0-27-generic : Depends: linux-image-5.11.0-27-generic but it is not going to be installed or
linux-image-unsigned-5.11.0-27-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
(nor sudo apt-get purge linux-image-5.11.0-27-generic` produces a similar error related to unmet dependencies.
When I run `apt --fix-broken install` this happens:
Code:
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
amd64-microcode intel-microcode iucode-tool libfwupdplugin1 libllvm11 linux-headers-generic-hwe-20.04 shim thermald
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-image-unsigned-5.11.0-27-generic
Suggested packages:
fdutils linux-doc | linux-hwe-5.11-source-5.11.0 linux-hwe-5.11-tools linux-modules-extra-5.11.0-27-generic
The following packages will be REMOVED
linux-image-5.11.0-27-generic linux-image-5.8.0-59-generic
The following NEW packages will be installed
linux-image-unsigned-5.11.0-27-generic
0 to upgrade, 1 to newly install, 2 to remove and 0 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/9,927 kB of archives.
After this operation, 9,441 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: linux-image-5.11.0-27-generic: dependency problems, but removing anyway as you requested:
linux-modules-5.11.0-27-generic depends on linux-image-5.11.0-27-generic | linux-image-unsigned-5.11.0-27-generic; however:
Package linux-image-5.11.0-27-generic is to be removed.
Package linux-image-unsigned-5.11.0-27-generic is not installed.
(Reading database ... 237931 files and directories currently installed.)
Removing linux-image-5.11.0-27-generic (5.11.0-27.29~20.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.11.0-27-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found background image: wallpaper.png
Found linux image: /boot/vmlinuz-5.8.0-63-generic
Found initrd image: /boot/initrd.img-5.8.0-63-generic
Found linux image: /boot/vmlinuz-5.4.0-58-generic
Found initrd image: /boot/initrd.img-5.4.0-58-generic
Adding boot menu entry for UEFI Firmware Settings
/etc/grub.d/35_fwupd: line 5: /usr/share/grub: Is a directory
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 126
dpkg: error processing package linux-image-5.11.0-27-generic (--remove):
installed linux-image-5.11.0-27-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-5.11.0-27-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
I note I don't have `linux-generic-hwe-20.04` but am not sure if that's related - I can't install it anyway. Neither with the below or with `
sudo apt-get install --install-recommends linux-generic-hwe-20.04
I've been on multiple Linux sites which all seem to suggest that I should be able to (re)install it - but the same dependency issue arises.
Code:
$ sudo apt install linux-generic-hwe-20.04
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.
linux-generic-hwe-20.04 : Depends: linux-image-generic-hwe-20.04 (= 5.11.0.27.29~20.04.11) but it is not going to be installed
linux-modules-5.11.0-27-generic : Depends: linux-image-5.11.0-27-generic but it is not going to be installed or
linux-image-unsigned-5.11.0-27-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
All suggestions as to what I might need to do to fix this would be very much appreciated! I basically want to be able to delete the corrupted 5.11 kernel and reinstall (possibly including linux-generic-hwe-20.04). I kind of feel I'm going round in circles...
EDIT: I do have a Timeshift backup but was thinking it might be good for me (character building even!) to understand how to fix this manually...
thanks
Andrew
Last edited: