A few days ago, since I couldn't start my own Linux computer, I started it today. I checked out Ubuntu updates during this period! Update the SDK without thinking about it. The update is smooth. When VirtualBox was opened, an error occurred: VirtualBoxkerneldrivernotinstalled. Thevboxdrvkernelmodulewaseithernotloadedor/dev/vboxdrvwa
A few days ago, since I couldn't start my own Linux computer, I started it today. I checked out Ubuntu updates during this period! Update the SDK without thinking about it. The update is smooth. When VirtualBox was opened, an error occurred:
VirtualBox kernel driver not installed. the vboxdrv kernel module was either not loaded or/dev/vboxdrv was not created for some reason. re-setup the kernel module by executing '/etc/init. d/vboxdrv setup 'as root.
VBox status code:-1908 (VERR_VM_DRIVER_NOT_INSTALLED ).
Result Code: 0x80004005
Component: Console
Interface: IConsole
{1dea5c4b-0753-4193-b909-22330f64ec45}
Prompt: enter in Terminal
Sudo/etc/init. d/vboxdrv setup
Still not. The information provided is
Stopping VirtualBox kernel module: vboxdrv.
Recompiling VirtualBox kernel module: vboxdrv
* Look at/var/log/vbox-install.log to find out what went wrong
Open the/var/log/vbox-install.log file, book:
Cp: missing destination file operand after "/tmp/vbox.0/Module. symvers"
Run "cp -- help" to obtain more information.
Makefile: 73: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = and run Make again .. Stop.
It seems that the Linux kernel is upgraded during the update, so vboxdrv needs to be re-compiled. Because it is directly updated from the source, there is no Linux kernel source file, it is clear that these source files need to be compiled. I visited several forums and said the solution is as follows:
Sudo apt-get install linux-headers-$ (uname-r)
Sudo apt-get install linux-restricted-modules-$ (uname-r)
Sudo/etc/init. d/vboxdrv setup
Sure enough, the terminal prompts that the compilation is successful.
* Stopping VirtualBox kernel module vboxdrv [OK]
* Recompiling VirtualBox kernel module vboxdrv [OK]
* Starting VirtualBox kernel module vboxdrv [OK]
Start VirtualBox. Everything is normal.