3

I am not able to delete the following 2 packages :

virtualbox-dkms
virtualbox-ext-pack

When I do

sudo apt-get purge virtualbox-ext-pack

it returns the following:

Sub-process /usr/bin/dpkg returned an error code (1)

and when I do

sudo apt-get purge virtualbox-dkms

it returns:

The following packages have unmet dependencies:
virtualbox-ext-pack : Depends: virtualbox (>= 5.0) or
                            virtualbox-5.0 but it is not going to be installed or
                            virtualbox-5.1 but it is not going to be installed

What should I do?

Danatela
  • 13,243
  • 11
  • 45
  • 72
humble
  • 268

1 Answers1

3

Was finally able to remove the packages

First I needed to do

sudo apt-get install -f

as suggested in comments and then

sudo apt-get purge virtualbox-ext-pack
sudo apt-get autoremove
sudo apt-get purge virtualbox-dkms
sudo apt-get autoremove
humble
  • 268