I meet a problem installing Virtualbox kernel driver on Ubuntu MATE 20.04.
The running kernel is 5.4.0-58-generic x86_64.
No UEFI.
Reinstalling goes like this:
$ sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
depmod: WARNING: could not open modules.order at /lib/modules/5.4.73: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/5.4.73: No such file or directory
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
5.4.73 is a bogus kernel version and if /lib/modules/5.4.73 doesn't exist, vboxconfig creates it.
But it obviously lacks its normal content and vboxconfig fails.
Certainly not the duplicate of another question (read twice)
The questions are:
- where does vboxconfig pick that bogus instead of true name?
- what safe action should I take to circumvent that? safe means not risking a unbootable system and might be a kernel update installation.
TIA.
sudo apt install --reinstall linux-generic
and for the kernel you're currently usingsudo apt install --reinstall linux-headers-$(uname -r)
– mchid Jun 06 '22 at 01:50cat /usr/src/linux-headers-$(uname -r)/include/config/kernel.release
– mchid Jun 06 '22 at 01:52