VirtualBox 抱怨 vagrant up 运行后未加载内核模块

VirtualBox 抱怨 vagrant up 运行后未加载内核模块

我尝试vagrant up在 Linux 终端中运行命令,然后遇到以下错误:

The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:


VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.

我也运行,VBoxManage --version但仍然出现以下错误:

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.0.0-32-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
    6.0.14r133895

我在这个网站上发现了一些问题,但仍然没有得到任何解决方案。

答案1

主要问题出在虚拟盒子上。

我运行sudo apt-get purge virtualbox-\*此命令来删除所有 vb 文件,然后通过下载升级到最新版本.deb 关联文件。

相关内容