i get this error msg when doing sudo apt-get install virtualbox
.
dpkg: dependency problems prevent configuration of virtualbox:
virtualbox depends on virtualbox-dkms (>= 5.0.32-dfsg-0ubuntu1.16.04.2) | virtualbox-source (>= 5.0.32-dfsg-0ubuntu1.16.04.2) | virtualbox-modules; however:
Package virtualbox-dkms is not configured yet.
Package virtualbox-source is not installed.
Package virtualbox-modules is not installed.
Package virtualbox-dkms which provides virtualbox-modules is not configured yet.
dpkg: error processing package virtualbox (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of virtualbox-qt:
virtualbox-qt depends on virtualbox (= 5.0.32-dfsg-0ubuntu1.16.04.2); however:
Package virtualbox is not configured yet.
dpkg: error processing package virtualbox-qt (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
virtualbox-dkms
virtualbox
virtualbox-qt
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is how I solved mine in the past.
visit https://www.virtualbox.org/wiki/Linux_Downloads
Download the one that is applicable to your system.
$ sudo dpkg -i filename.deb
to install it.Solution:
sudo apt-get purge virtualbox*
when additional dependencies are not getting installed, it causes a broken install.
Install the broken dependencies manually using,
and trying again solved the issue.