1

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

1 Answers1

2

I would recommend installing Virtualbox from the Ubuntu repositories, but it might be lower than 5.2 at the moment.

If you have already added a repository (step 2 of the linked tutorial), remove it with this command, from How to remove a repository?

sudo add-apt-repository -r ppa:<ppa to remove>

Or maybe removing the file you created in /etc/apt/sources.list.d/ will also work.

Enable the multiverse repository and update the apt packages with

sudo apt update

And now install latest virtualbox

sudo apt install virtualbox
Katu
  • 3,663