This question already has an answer here:
I followed this guide to install Virtualbox, but it failed eventually and I get this error message
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
When I ran this command
# sudo /sbin/vboxconfig
I get this
vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: Starting VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run /sbin/vboxconfig as root.
and here's the last three lines of dmesg output:
[ 44.698246] wlo1: Limiting TX power to 20 (20 - 0) dBm as advertised by 00:18:0a:79:2c:79 [ 163.080255] capability: warning: `VirtualBox' uses 32-bit capabilities (legacy support in use) [ 2349.627558] [drm:intel_pipe_update_end [i915_bpo]] *ERROR* Atomic update failure on pipe A (start=142454 end=142455) time 484 us, min 1073, max 1079, scanline start 1061, end 1095
I tried to re-install dkms
sudo apt-get install --reinstall virtualbox-dkms I get this error and nothing changes .
vboxpci.ko: Running module version sanity check. Error! Module version 5.0.24_Ubuntu for vboxpci.ko is not newer than what is already found in kernel 4.4.0-47-generic (5.1.10). You may override by specifying --force.
Any help will be appreciated. Thanks in advance.