Instant Karma (was A better flavour?)
Nils Kassube
kassube at gmx.net
Mon Sep 3 17:23:56 UTC 2018
Robert Heller wrote:
> You probably need to re-build the initramfs and/or rebuild grub.cfg.
> The recovery ramdisk is probably good (or at least good enough to get
> the recovery menu).
The commands would be
sudo update-initramfs -c -k $(uname -r)
sudo update-grub
But you still have all the old kernels registered in your package
database when you removed the kernels from /boot. You could list the old
kernels (and headers) with the command
dpkg --get-selections|grep -e linux-image -e linux-headers
and then copy / paste the names of the old packages to the command
sudo apt-get purge LIST_OF_KERNELS_AND_HEADERS
That command will also remove all the obsolete files in /lib/modules
which you didn't remove and it will update the package database.
Nils
More information about the ubuntu-users
mailing list