更新导致 VirtualBox 崩溃

更新导致 VirtualBox 崩溃

操作系统:Ubuntu 16.04 64位,带Gnome Classic

VB:5.2.26 r128414(Qt5.6.1)

我在 VirtualBox 中运行了 3 个 MS Windows VM。这些 VM 已经运行多年了。今天早上,我因更新而重新启动了系统。当我尝试运行任何 VM 时,我收到此错误:

`The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there 
is a permission problem with /dev/vboxdrv. Please reinstall the kernelmodule by 
executing '/sbin/vboxconfig' as root. where: suplibOsInit what: 
3 ERR_VM_DRIVER_NOT_INSTALLED (-1908)
- The support driver is not installed. On linux, open returned ENOENT. The 
VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a 
permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
'/sbin/vboxconfig'
as root.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support 
driver is not installed. On linux, open returned ENOENT.'

当我运行命令时收到此错误:

`vboxdrv.sh: Stopping VirtualBox services.
`vboxdrv.sh: Starting VirtualBox services.
`vboxdrv.sh: Building VirtualBox kernel modules.
`vboxdrv.sh: 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
/sbin/vboxconfig
as root.

浏览完后,我决定降级到 V5.1,通过这篇文章扩展包安装失败。我能够启动其中一个虚拟机,但现在甚至 VB 的 GUI 都无法运行。

以下是崩溃日志:

virtualbox-5.1.0.crash detected /var/crash/virtualbox-5 VirtualBox Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

从我链接的帖子中,我正在尝试第一个答案,但是系统现在找不到该包:

sudo apt remove virtualbox*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package virtualbox-5.1_5.1.38-122592~Ubuntu~xenial_amd64.deb
E: Couldn't find any package by glob 'virtualbox-5.1_5.1.38-122592~Ubuntu~xenial_amd64.deb'
E: Couldn't find any package by regex 'virtualbox-5.1_5.1.38-122592~Ubuntu~xenial_amd64.deb'

我已尝试第一个答案的其余部分,并在成功安装后出现以下错误:

The VirtualBox kernel modules do not match this version of VirtualBox. The installation 
of VirtualBox was apparently not successful. Executing
'/sbin/vboxconfig'
may correct this. Make sure that you are not mixing builds of VirtualBox from 
different sources.
where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) 
- The installed support driver doesn't match the version of the user.   

/sbin/vboxconfig 无法解决问题。现在我无法删除 testbuild。我不知道下一步该怎么做。

答案1

对于当前显示的错误,我的建议是在完全删除以前的软件包后重新安装 Virtualbox。

我试过使用,/sbin/vboxconfig但即使你使用 root 帐户运行它,它也无法真正解决问题。解决问题的最佳方法是针对不同版本的内核安装适用于 virtualbox 的客户机和主机模块。

要了解内核的当前版本,只需输入uname -r

相关内容