Error loading virtualbox-dkms for kernel 5.11

Asked by Liam

Hi Everyone

i got this virtualbox error after upgrading my ubuntu kernel from 5.8 to 5.11

OS using: Ubuntu

Error when i tried to start my VM centos
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please reinstall virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'

as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

Loading new virtualbox-6.1.16 DKMS files...
Building for 5.11.11-051111-generic
Building initial module for 5.11.11-051111-generic
ERROR (dkms apport): kernel package linux-headers-5.11.11-051111-generic is not supported
Error! Bad return status for module build on kernel: 5.11.11-051111-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.16/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
 installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of virtualbox:
 virtualbox depends on virtualbox-dkms (>= 6.1.16-dfsg-6~ubuntu1.20.04.1) | virtualbox-source (>= 6.1.16-dfsg-6~ubuntu1.20.04.1) | virtualbox-modules; however:
  Package virtualbox-dkms is not configured yet.
  Package virtualbox-source is not installed.
  Package virtualbox-modules is not installed.
  Package virtualbox-dkms which provides virtualbox-modules is not configured yet.

Question information

English Edit question
Ubuntu virtualbox Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :

See the message in your output:
"ERROR (dkms apport): kernel package linux-headers-5.11.11-051111-generic is not supported"

as far as I know Oracle/VirtualBox has not yet provided a package that flawlessly works with the 5.11 kernel version.

You could try whether the updated version for Ubuntu hirsute works on your system

You have to be aware that Ubuntu 20.04 with kernel 5.11 is not a supported combination (yet).

Can you help with this problem?

Provide an answer of your own, or ask Liam for more information if necessary.

To post a message you must log in.