预创建检查出错:“我们从版本 5 开始支持 Virtualbox

问题描述 投票:0回答:0

伙计们,我正在尝试安装虚拟机,但卡在了某一点。

sudo docker-machine create --driver virtualbox host1
Running pre-create checks...
Error with pre-create check: "We support Virtualbox starting with version 5. 
Your VirtualBox install is \"WARNING: The vboxdrv kernel module is not loaded. 
Either there is no module\\n available for the current kernel (5.15.90.1-microsoft-standard-WSL2) or it failed to\\n load. 
Please recompile the kernel module and install it by\\n\\n sudo /sbin/vboxconfig\\n\\n         
You will not be able to start VMs until this problem is fixed.\\n7.0.10r158379\". Please upgrade at https://www.virtualbox.org"
  1. 已安装docker-machine
  2. 现在在尝试创建 docker 机器时出现上述错误。
  3. 注意我已经安装了虚拟盒最新版本 - 运行代码后
    sudo virtualbox version
    它会打开虚拟盒。
  4. 另外,根据错误,他们要求安装虚拟盒的 5* 版本,但该版本已弃用,无法安装较低版本。出现以下错误

sudo apt-get install virtualbox-5.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package virtualbox-5.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
    
E: Package 'virtualbox-5.2' has no installation candidate

linux ubuntu linux-kernel virtualbox linux-kernel-headers
© www.soinside.com 2019 - 2024. All rights reserved.