Hello, is this still a problem?
G. On Sun, 30 Oct 2016 18:01:44 +0100 Johannes Kneer <[email protected]> wrote: > Package: dkms > Version: 2.3-1 > Severity: important > Tags: upstream > > Dear Maintainer, > > for years (literally!) I've had problems with package updates using dkms. They > would fail with an error message that did not seem quite right, but I could > always solve the problem by manually removing the offending module _manually_ > from /var/lib/dkms as "dkms remove" would also fail... > > I've had a look at it, I'm still not quite sure what exactly goes wrong or in > which place. Below is what I found. > I'm using virtualbox-dkms as an example, but I have the same problem with > nvidia-kernel-dkms. The problems seem to be related to either the dkms script > itself or the common.postinst script, both of which are from the dkms package. > > Summary: > - 'dkms remove -m module -v version --all' does not seem to work, whereas > giving the explicit kernel does? I'm not sure if this is another symptom or > the > root cause. > - Also sometimes the error message on trying to install is refering to a > _built_ already existing, which seems to be another symptom. > > > Example (after manually removing all of dkms, virtualbox, cleaning /usr/src, > /var/lib/dkms) > ------------------ > >> aptitude install virtualbox > > The following NEW packages will be installed: > > libgsoap10{a} virtualbox virtualbox-dkms{a} virtualbox-qt{a} > > [everything works the 1st time] > > Let's reconfigure to simulate an update: > > >> dpkg-reconfigure virtualbox-dkms > > Removing old virtualbox-5.1.8 DKMS files... > > Loading new virtualbox-5.1.8 DKMS files... > > Error! DKMS tree already contains: virtualbox-5.1.8 > > You cannot add the same module/version combo more than once. > > Weird certainly not what I'd expect, let's purge the packages: > > >> aptitude purge virtualbox virtualbox-dkms > >The following packages will be REMOVED: > > libgsoap10{u} virtualbox{p} virtualbox-dkms{pu} virtualbox-qt{u} > > ... > > Removing virtualbox-dkms (5.1.8-dfsg-6) ... > > ... > > Let's reinstall: > > >> aptitude install virtualbox > > Setting up virtualbox-dkms (5.1.8-dfsg-6) ... > > Removing old virtualbox-5.1.8 DKMS files... > > Loading new virtualbox-5.1.8 DKMS files... > > Error! DKMS tree already contains: virtualbox-5.1.8 > > You cannot add the same module/version combo more than once.

