ubuntu16.04下virtualbo运行报错

报错:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux Kernel driver is  either not loaded or not set up correctiy.Please try setting it up again by executing

'/sbin/vboxconfig'

as root

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv,vboxnetflt,vboxnetadp,vboxpci)before you can load them,Please see your Linux system's documentation for more information.

where:suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED(-1908)- The support driver is not installed. On linux,open returned ENOENT

环境:ubuntu16.04
虚拟机:virtualbox-6.0.24
权限:root

切记一定要用远程ssh去安装,不然几个小时慢得很

1、查看是否安装了两个virtualbox

dpkg --list | grep virtualbox

2、卸载所有的virtualbox,包括配置文件

apt-get autoremove --purge 'virtualbox*'

3、安装virtualbox6.0.24

#Oracle 公钥存储库密钥导入和添加到您的系统
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

#添加 VirtualBox 包存储库文件
sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"

#更新apt源
sudo apt update

#安装virtualbox-6.0
sudo apt install virtualbox-6.0

然后再打开安装好的虚拟机就可以了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值