如何修复“未安装内核驱动程序 (rc=-1908)” VirtualBox Ubuntu 中的错误

我使用甲骨文 VirtualBox 测试各种 Linux 和 Unix 发行版。 我已经测试了这么多虚拟机 VirtualBox. 今天,我在我的 Ubuntu 18.04 桌面上启动了 Ubuntu 18.04 服务器 VM,我遇到了以下错误:

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 virtualbox-dkms package and load the kernel module by executing  'modprobe vboxdrv'  as root.  where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

Ubuntu 中的“未安装内核驱动程序 (rc=-1908)”错误

我点击确定 close 消息框,我在后台看到另一个消息框。

Failed to open a session for the virtual machine Ubuntu 18.04 LTS Server.  The virtual machine 'Ubuntu 18.04 LTS Server' has terminated unexpectedly during startup with exit code 1 (0x1).  Result Code:  NS_ERROR_FAILURE (0x80004005) Component:  MachineWrap Interface:  IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}