Virtualbox

VirtualBox 抱怨在 vagrant up 執行後未載入核心模組

  • November 13, 2019

我嘗試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

我在這個網站上發現了一些問題,但仍然沒有得到任何解決方案。

主要問題在於虛擬盒子。

我執行sudo apt-get purge virtualbox-\*此命令以刪除所有 vb 文件,然後通過下載的.deb 連結文件升級到最新版本。

引用自:https://unix.stackexchange.com/questions/551667