Development notes

Thoughts, notes and ideas about development

Ubuntu: How to fix Virtual Box Vboxdrv Error

2020-04-09 1 min read Alexey Bogdanov

While running sudo /sbin/vboxconfig the following error may occur: Stopping VirtualBox services. Starting VirtualBox services. Building VirtualBox kernel modules. failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
as root.  If your system is using EFI Secure Boot you may 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.

To fix it, run the following command:

sudo apt-get install --reinstall virtualbox-dkms

After that, run the following:

sudo modprobe vboxdrv

Now Virtualbox should work.

comments powered by Disqus