Bug#996461: nvidia-kernel-dkms: DKMS tree already contains: nvidia-current-470.74

Drew Parsons dparsons at debian.org
Sat Nov 20 10:27:10 GMT 2021


On 2021-11-20 10:31, Drew Parsons wrote:
> 
> I see 3 workarounds
> 
> 1) create a symlink from dkms.key to mok.priv and dkms.der to mok.der.
> 
> 2) Create a separate dkms.key.  Not so convenient to have 2 keys
> though (though I could just stop using mok.der)
> 
> 3) Comment out sign_tool in /etc/dkms/framework.conf, and sign
> manually.  A little inelegant for dkms, but otherwise easy.
> 
> 1) or 3) would seem simplest to do, but strangely neither of them
> fixes the final problem. Still gives the same error, "DKMS tree
> already contains: nvidia-current-470.86. You cannot add the same
> module/version combo more than once."
> Not sure if it would work after nvidia purge/reinstall. Or if it needs 
> a reboot.


This error is pervasive.

I've reconfigured to follow the dkms instructions at 
/usr/share/doc/dkms/README.md.gz, just using /root/dkms.key and 
dkms.der. Generated the keys afresh and registered them. Manually 
deleted any nvidia-current*ko files under /lib/modules/*. Rebooted. 
Purged nvidia-kernel-dkms. Rebooted again.

But the error comes back. Even after deleting, purging, rebooting, when 
I then install nvidia-kernel-dkms anew, I still get the same error 
message:

Setting up nvidia-kernel-dkms (470.86-1) ...
Removing old nvidia-current-470.86 DKMS files...
Loading new nvidia-current-470.86 DKMS files...
Error! DKMS tree already contains: nvidia-current-470.86
You cannot add the same module/version combo more than once.
dpkg: error processing package nvidia-kernel-dkms (--configure):
  installed nvidia-kernel-dkms package post-installation script 
subprocess returned error exit status 3
dpkg: dependency problems prevent configuration of nvidia-driver:
  nvidia-driver depends on nvidia-kernel-dkms (= 470.86-1) | 
nvidia-kernel-470.86; however:
   Package nvidia-kernel-dkms is not configured yet.
   Package nvidia-kernel-470.86 is not installed.
   Package nvidia-kernel-dkms which provides nvidia-kernel-470.86 is not 
configured yet.

dpkg: error processing package nvidia-driver (--configure):
  dependency problems - leaving unconfigured
Errors were encountered while processing:
  nvidia-kernel-dkms
  nvidia-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)



More information about the pkg-nvidia-devel mailing list