I met the same issue after VirtualBox upgrade to 5.2.6 r120293
Linux kernel version 4.14.13-041413-generic
The following commands sequence helped for me:
$ sudo apt install --reinstall virtualbox-dkms && sudo apt install libelf-dev $ sudo /sbin/vboxconfig
$ sudo apt install --reinstall virtualbox-dkms && sudo apt install libelf-dev
just this solved the same problem on my Kubuntu 18.4.2
virtualbox-dkms as above, you may also have to
sudo modprobe vboxdrv to reload the kernel module.
On Mac, re-installing Virtualbox fixes the issue
If you’re running Ubuntu or Debian distribution (or either derivative of either), the driver management should be automatically handled by
dkms if you have it installed.
If you didn’t previously have
dkms you can fix the problem for the currently running kernel version and Virtualbox version by executing the
root. In practice you can open new terminal window (with
T by default) and simply type
sudo /sbin/vboxconfig and press enter.
If you don’t have
dkms installed, you’ll experience similar problem in the future, too, when Virtualbox or Linux kernel is updated next time. To avoid that, you can run
sudo apt install dkms, too.