How do I uninstall dkms modules if there are two of them ...
askubuntu.com › questions › 849547If you really want to uninstall the module for a particular kernel, you can refer to the dkms(8) manual:-k <kernel-version>/<arch> The kernel and arch to perform the action upon. You can specify multiple kernel version/arch pairs on the command line by repeating the -k argument with a different kernel version and arch. However, not all actions support multiple kernel versions (it will error out in this case).
Chapter 4. Installing the NVIDIA Driver
download.nvidia.com › XFree86 › Linux-x86_64Running nvidia-uninstall before installing a driver using an older installer will invoke the correct dkms remove command to clean up the installation. Due to the lack of secure storage for private keys that can be utilized by automated processes such as DKMS, it is not possible to use DKMS in conjunction with the module signing support built into nvidia-installer .