On Friday 06 August 2021 04:24:25 pm dep wrote:
. . . I have in my /boot directory four kernels -- the
running one
(5.4.0-80) -- and some rather hoary ones: 4.4.0-124, 3.13.0-147, and
3.13.0-126. i do not currently have nor do I imagine ever having need for
the last three. Thought I'd get rid of 'em, but they do not show up in
Ubuntu Cleaner or anything else capable of sending them to the bit bucket.
So. Anybody know any reason I'd want to keep them and, absent such a
reason, anybody know a quick and complete way of deleting them? Used to be
they'd always at least show up in Synaptic, but not this time.
No real reason to keep really old boot images, the last working one definitely
keep though. Do a full tarball of /boot and then try this:
# ls -al --color=always /boot # Will show if you have screwy stragglers not
shown in next step.
# dpkg -l 'linux-image-*' | grep '^ii'
!Note: Do NOT remove anything identified as "meta-package!" from dpkg -l !
# sudo apt-get purge linux-image-3.13.0-147-amd64 # < verify name is correct!
# sudo apt-get purge ...
# sudo dpkg --configure -a
Then probably best to do a:
# sudo apt-get update
# sudo apt-get dist-upgrade
If you've never done this before, for your piece of mind, maybe wait for
Slávek to verify? (or just do an internet search...)
HTH,
Michael