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.