我正在尝试从 CLI 在 Ubuntu 18.04.2 LTS 上安装 VirtualBox 5.2,因为它是服务器版本。我已遵循以下说明:
https://websiteforstudents.com/virtualbox-5-2-on-ubuntu-16-04-lts-server-headless/
但是,我收到有关具有未满足依赖关系的软件包的以下错误:
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.2 : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed
: Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
: Depends: libvpx3 (>= 1.5.0) but it is not installable
: Recommends: libsdl-ttf2.0-0 but it is not going to be installed
: Recommends: pdf-viewer
E: Unable to correct problems, you have broken packages.
答案1
该手册适用于 16.04。
我建议从安装 VirtualBox-6.0VirtualBox 网站
当前版本在此处: https://download.virtualbox.org/virtualbox/6.0.4/virtualbox-6.0_6.0.4-128413~Ubuntu~bionic_amd64.deb
如果你特别想要 5.2 版本,这里有一个 Ubuntu 18.04 版本
按照这种方式安装
wget https://download.virtualbox.org/virtualbox/5.2.26/virtualbox-5.2_5.2.26-128414~Ubuntu~bionic_amd64.deb
sudo dpkg -i virtualbox-5.2_5.2.26-128414~Ubuntu~bionic_amd64.deb
sudo apt install -f