我尝试通过 Ubunutu 软件中心安装 VirtualBox 但不断收到以下错误消息:
以下软件包具有未满足的依赖关系:
virtualbox-qt: Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.1-0ubuntu1 is to be installed
Depends: libqt4-network (>= 4:4.5.3) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed
Depends: libqt4-opengl (>= 4:4.7.2) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed
Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed
Depends: libqtgui4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed
Depends: libstdc++6 (>= 4.6) but 4.8.2-19ubuntu1 is to be installed
Depends: virtualbox (= 4.3.10-dfsg-1) but 4.3.10-dfsg-1 is to be installed
我觉得这很奇怪,请注意,它似乎说所有需要的软件包都符合版本要求,但后来却被拒绝了?我尝试手动安装上述所有软件包,然后收到一条消息说:
the package 'is already the newest version'
有什么想法吗?
答案1
尝试从官方 Virtual Box 网站下载它。
从您最喜欢的终端和文本编辑器
在 /etc/apt/sources.list 末尾添加以下行
sudo nano /etc/apt/sources.list
转到文件末尾并添加
deb http://download.virtualbox.org/virtualbox/debian trusty contrib
保存退出,然后运行
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
然后做
sudo apt-get update
sudo apt-get install virtualbox-4.3 dkms
然后安装扩展包
wget http://download.virtualbox.org/virtualbox/4.3.20/Oracle_VM_VirtualBox_Extension_Pack-4.3.20-96996.vbox-extpack
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.20-96996.vbox-extpack