Hello,
On Wed, Jun 03, 2020 at 03:09:10PM +0100, Ian Hobson wrote:
Thanks for your input. I ran
dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep
-v -e
`uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' | xargs sudo apt-get -y
purge
And manually removed the files that this complained it could not delete. Was
a bit surprised to see modules for -101 in that list.
Why? The above seems like it would purge -101 if you are currently
running -88. Were you running -88 at the time? The use of -y also
doesn't give any chance for apt-get to say it's a bad idea, not that
I'm sure it does in this instance…
Can't pick them up from .bash_history because I
was inside mc.
Probably something in the dpkg or apt logs.
So does:
$ sudo apt --reinstall install linux-image-4.15.0-101-generic
stop your update-grub complaining and allow you to boot into -101?
My /boot dir is still full of stuff, most of which I
suspect is surplus to
requirements.
Your above command looks like it only purges packages which are
currently installed, so if there are linux-image packages which are
merely removed it won't have purged them. A lot of this stuff could
perhaps be removed by purging them.
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
Please consider the environment before reading this e-mail.
— John Levine