Virtualbox on Ubuntu 19.10 – Installation and Setup Guide


I have downloaded Virtualbox from the official repository. However, I can't manage to install it on Ubuntu 19.10:

> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:    19.10
Codename:   eoan

It says that my configuration does not have some dependencies:

dpkg -i virtualbox-6.0_6.0.14-133895~Ubuntu~bionic_amd64.deb 
Selecting previously unselected package virtualbox-6.0.
(Reading database ... 183239 files and directories currently installed.)
Preparing to unpack virtualbox-6.0_6.0.14-133895~Ubuntu~bionic_amd64.deb ...
Unpacking virtualbox-6.0 (6.0.14-133895~Ubuntu~bionic) ...
dpkg: dependency problems prevent configuration of virtualbox-6.0:
 virtualbox-6.0 depends on libqt5opengl5 (>= 5.0.2); however:
  Package libqt5opengl5 is not installed.
 virtualbox-6.0 depends on libqt5printsupport5 (>= 5.0.2); however:
  Package libqt5printsupport5 is not installed.
 virtualbox-6.0 depends on libqt5x11extras5 (>= 5.6.0); however:
  Package libqt5x11extras5 is not installed.
 virtualbox-6.0 depends on libsdl1.2debian (>= 1.2.11); however:
  Package libsdl1.2debian is not installed.
 virtualbox-6.0 depends on libvpx5 (>= 1.6.0); however:
  Package libvpx5 is not installed.

dpkg: error processing package virtualbox-6.0 (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (242-7ubuntu3) ...
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu1) ...
Processing triggers for mime-support (3.63ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.10-1) ...
Errors were encountered while processing:

Running sudo apt-get install -f won't install the dependencies, but will remove the uncomplete installation of Virtualbox. Am I missing something?

Best Answer

To install the official package and testing VirtualBox for your release, you need only

sudo apt install virtualbox

That will cause to be installed (note: it's found in 'multiverse' so that repository must be enabled;

You are trying to install a virtualbox packaged for bionic (18.04) which is unofficial for Ubuntu 19.10 (eoan). It needs to be removed (if installed) and the official 6.0.14 package installed from official repositories (for eoan).

Related Question