2

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)

3 Answers3

1

This is how I solved mine in the past.

  1. visit https://www.virtualbox.org/wiki/Linux_Downloads

  2. Download the one that is applicable to your system.

  3. Run from bash: $ sudo dpkg -i filename.deb to install it.
0

when additional dependencies are not getting installed, it causes a broken install.

Install the broken dependencies manually using,

sudo apt --fix-broken install

and trying again solved the issue.

Mukundhan
  • 101
0

Solution: sudo apt-get purge virtualbox*