Hello,
On Wed, Jun 03, 2020 at 02:26:28PM +0100, Ian Hobson wrote:
I was attempting to free up some space, (/boot is over
full) and I fear I
have damaged my Ubuntu 18/04 installation.
So what did you actually do? .bash_history should have it.
When I run
sudo apt-get update && sudo apt-get upgrade
the following errors are flagged up in the middle on the
results.
WARNING: missing /lib/modules/4.15.0-101-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.15.0-101-generic: No
such file or directory
[…]
The system does boot
[…]
uname -r gives
4.15.0-88-generic
But presumably kernel 4.15.0-101 is listed at the top of the grub
menu and doesn't work, then it actually boots with 4.15.0-88?
How can I recover? I feel right out of my depth!
I would like to know more about what was done before giving firm
advice but it seems like you might have deleted
/lib/modules/4.15.0-101-generic when linux-image-4.15.0-101 is the
kernel you are supposed to boot. If so then forcing reinstall of the
package should put the files back.
My general rule when clearing out unused kernel pages is to keep
both the currently-running kernel and the one it's supposed to run.
So in your case that's linux-image-4.15.0-88 and -101.
If this is a result of deleting things from /lib, I wouldn't feel
too bad. I once put /lib on an LVM logical volume in order to free
up space in /. Of course, the kernel modules required to load a file
system off of LVM are in /lib…
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting