我正在运行带有 GNOME 3.18 的 Ubuntu GNOME 15.10,并尝试在我的系统上安装 VirtualBox 5.0,我已按照Debian-based Linux distributions
安装部分中的所有说明进行操作这里但是当我尝试使用以下命令实际安装它时:
sudo apt-get install virtualbox-5.0
我得到这个输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
virtualbox-5.0 : Depends: libvpx1 (>= 1.0.0) but it is not installable
Recommends: libsdl-ttf2.0-0 but it is not going to be installed
Recommends: dkms but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我也尝试过跑步:
sudo apt-get install -f
但它说没有什么可升级或安装的。
那我该怎么办?我确实需要安装 VirtualBox 5.0,但似乎无法安装。
信息更新:
apt-cache policy virtualbox-5.0 libvpx1
输出:
virtualbox-5.0:
Installed: (none)
Candidate: 5.0.10-104061~Ubuntu~trusty
Version table:
5.0.10-104061~Ubuntu~trusty 0
500 http://download.virtualbox.org/virtualbox/debian/ vivid/contrib amd64 Packages
libvpx1:
Installed: (none)
Candidate: (none)
Version table:
答案1
您使用 Vivid 的存储库,并且此存储库中的 VirtualBox 包取决于libvpx1
哪个适用于 Vivid 但不适用于 Wily。
当您使用 Wily 时,请更改存储库:
sudo sed -i 's/vivid/wily/' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install virtualbox-5.0
答案2
我确信它会起作用。
wget http://ftp.us.debian.org/debian/pool/main/libv/libvpx/libvpx1_1.1.0-1_amd64.deb
sudo dpkg -i libvpx1_1.1.0-1_amd64.deb
wget http://ftp.cn.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.49-1+deb7u2_amd64.deb
sudo dpkg -i libpng12-0_1.2.49-1+deb7u2_amd64.deb
如果sudo apt-get install virtualbox-5.0
提示没有安装 VirtualBox 5,请从以下位置下载安装文件此链接
答案3
这应该不再是一个问题,我只在添加自定义 ppa 时才遇到这个问题,但常规 ubuntu 版本(5.0.14)在没有其他 ppa 的情况下安装得很好
“sudo apt-get 安装 virtualbox”