1

When I tried to install VirtualBox using :

sudo apt install virtualbox 

I got the following error stating that the following packages have unmet dependencies:

virtualbox : Depends: virtualbox-dkms (>= 5.2.10-dfsg-6ubuntu18.04.1) but it is not going to be installed or
virtualbox-source (>= 5.2.10-dfsg-6ubuntu18.04.1) but it is not going to be installed or
virtualbox-modules
E: Unable to correct problems, you have held broken packages.

I even tried to purge and reinstall using virtualbox-qt and virtualbox-5.2 but was of no use.

2

1 Answer 1

0

Seems that you missed running an apt update before trying to install VirtualBox:

sudo apt update

If after this you still get the same error message, try listing held packages with

apt-mark showhold

And to “uphold” a specific virtualbox related packages with this command:

sudo apt-mark unhold <package name>
2
  • the error got reduced to : The following packages have unmet dependencies: virtualbox-qt : Depends: virtualbox (= 5.2.10-dfsg-6ubuntu18.04.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages. The apt-mark showhold does not give any output.
    – Shaw_wit
    Feb 1, 2019 at 11:50
  • Seems that apt update didn't manage to do its work. Make sure that you have a line with: deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse in your /etc/apt/sources.list You can check that with: sudo nano /etc/apt/sources.list Feb 1, 2019 at 14:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .