![VirtualBox 抱怨 vagrant up 运行后未加载内核模块](https://linux22.com/image/163866/VirtualBox%20%E6%8A%B1%E6%80%A8%20vagrant%20up%20%E8%BF%90%E8%A1%8C%E5%90%8E%E6%9C%AA%E5%8A%A0%E8%BD%BD%E5%86%85%E6%A0%B8%E6%A8%A1%E5%9D%97.png)
我尝试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
关联文件。