I've got a fresh installation of Ubuntu 18.04.1 server running on an HP ProLiant DL380 Generation 7 (G7). I am trying to install VirtualBox 5.2.
I used the tutorial on this website : https://linuxize.com/post/how-to-install-virtualbox-on-ubuntu-18-04/
When I run the command sudo apt-get install virtualbox-5.2
I got.
The following packages have unmet dependencies:
**virtualbox-5.2 : Depends: libqt5x11extras5 (>= 5.6.0) but it is not installable**
Recommends: libsdl-ttf2.0-0 but it is not installable
Recommends: gcc but it is not going to be installed
Recommends: make but it is not going to be installed or
build-essential but it is not going to be installed or
dpkg-dev but it is not going to be installed
Recommends: binutils but it is not going to be installed
Recommends: pdf-viewer
E: Unable to correct problems, you have held broken packages.
I installed virtualbox on monday with the exact same method and it worked then. I have no idea how to fix this. Why does this problem all of a sudden appear?
Update: I just found a very similar question. Install Oracle VirtualBox 5.1 in Ubuntu 16.04
libqt5x11extras5
with commandsudo apt install libqt5x11extras5
and then, retry tosudo apt-get install virtualbox-5.2
– damadam Aug 08 '18 at 06:48Package libqt5x11extras5 is not available, but is referred to by anotherpackage. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'libqt5x11extras5' has no installation candidate
– Chris Fraser Aug 08 '18 at 06:57sudo apt update
andsudo apt install virtualbox
? https://askubuntu.com/questions/779095/install-virtualbox-on-ubuntu-16-04-lts/849695#849695 – Katu Aug 08 '18 at 07:48sudo add-apt-repository
will add a repository, probably to the folder /etc/apt/sources.list.d. Remove this repo so when you try to install with normal virtualbox it takes it from the ubuntu repositories instead of the one you added. The ubuntu repo version might be lower but its dependencies will be handled correctly. – Katu Aug 08 '18 at 07:57