我找不到关于这个问题的任何信息,所以当我解决它时,我想我会在 AskUbuntu 上发布它和答案,以防其他人有同样的问题。
Virtualbox 拒绝启动任何虚拟机;告诉我以/etc/init.d/vboxdrv setup
root身份运行。这样做导致:
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modulesError! Could not locate dkms.conf file.
File: does not exist.
...done.
Trying to register the VirtualBox kernel modules using DKMSError! DKMS tree already contains: vboxhost-4.3.18
You cannot add the same module/version combo more than once.
...failed!
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)
与依赖项相比,virtualbox 版本已过时。需要完全重新安装。但首先我备份了我的 dkms 配置并将其删除:
然后经过一番摸索,运行 apt update、upgrade 和 autoremove,我终于运行了:
它现在完美运行。