在Linux Mint 19 Tara上安装Virtualbox

时间:2018-09-28 03:50:04

标签: linux virtualbox linuxmint ubuntu-18.04 cinnamon

我试图在Linux上安装Virtualbox

Mint version 19, 
Code name : Tara,
PackageBase : Ubuntu Bionic
Cinnamon (64-bit)

https://www.isc.org/wp-content/uploads/2017/08/dhcp43.html

从上面的参考链接下载了此版本的linux- 用于Linux的VirtualBox 5.2.18 Ubuntu 18.04 / Debian 10 AMD64

首先运行命令:sudo apt-get update

,然后在命令下面尝试

xxxxxxxxxx:~/Downloads$ sudo dpkg -i virtualbox-5.2_5.2.18-124319_Ubuntu_bionic_amd64.deb 
(Reading database ... 273616 files and directories currently installed.)
Preparing to unpack virtualbox-5.2_5.2.18-124319_Ubuntu_bionic_amd64.deb ...
Unpacking virtualbox-5.2 (5.2.18-124319~Ubuntu~bionic) over (5.2.18-124319~Ubuntu~bionic) ...
dpkg: dependency problems prevent configuration of virtualbox-5.2:
 virtualbox-5.2 depends on libqt5opengl5 (>= 5.0.2); however:
  Package libqt5opengl5 is not installed.
 virtualbox-5.2 depends on libqt5printsupport5 (>= 5.0.2); however:
  Package libqt5printsupport5 is not installed.
 virtualbox-5.2 depends on libqt5x11extras5 (>= 5.6.0); however:
  Package libqt5x11extras5 is not installed.

dpkg: error processing package virtualbox-5.2 (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (237-3ubuntu10.3) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.9-2) ...
Errors were encountered while processing:
 virtualbox-5.2

如何确保在Linux Mint上安装了virtualbox。

1 个答案:

答案 0 :(得分:1)

我尝试使用命令安装缺少的依赖项: 须藤apt-get install -f

然后使用以下命令删除软件包:

xxxxxxxx:~/Downloads$ sudo dpkg -r virtualbox-5.2
(Reading database ... 273637 files and directories currently installed.)
Removing virtualbox-5.2 (5.2.18-124319~Ubuntu~bionic) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint3) ...
Processing triggers for mime-support (3.60ubuntu1) ...

然后使用以下命令彻底清除软件包

xxxxxxxx:~/Downloads$ sudo dpkg -P virtualbox-5.2
(Reading database ... 272816 files and directories currently installed.)
Purging configuration files for virtualbox-5.2 (5.2.18-124319~Ubuntu~bionic) ...

,然后重新运行dpkg install命令。

xxxxxxxxxx:~/Downloads$ sudo dpkg -i virtualbox-5.2_5.2.18-124319_Ubuntu_bionic_amd64.deb 
(Reading database ... 273638 files and directories currently installed.)
Preparing to unpack virtualbox-5.2_5.2.18-124319_Ubuntu_bionic_amd64.deb ...
Unpacking virtualbox-5.2 (5.2.18-124319~Ubuntu~bionic) over (5.2.18-124319~Ubuntu~bionic) ...
Setting up virtualbox-5.2 (5.2.18-124319~Ubuntu~bionic) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Processing triggers for systemd (237-3ubuntu10.3) ...
Processing triggers for ureadahead (0.100.0-20) ...
ureadahead will be reprofiled on next reboot
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.9-2) ...

我没有看到依赖错误。 要检查它是否已安装,

xxxxxxxxx:~/Downloads$ dpkg -l | grep 'virtualbox'
ii  virtualbox-5.2                             5.2.18-124319~Ubuntu~bionic         amd64        Oracle VM VirtualBox