一、采用添加Ubuntu源的方式下载安装VirtualBox。这样可以自行加载相关依赖文件。安装命令:
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" >> /etc/apt/sources.list.d/virtualbox.list'
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo apt update
sudo apt install virtualbox-5.2
二、相关异常:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.4.0-47-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.
解决方案:重启电脑,进入到BIOS中,找到其中的Secure Boot部分,将Enable变为Disable即可。