How do I uninstall dkms modules if there are two of them? - Ask Ubuntu


i have 2 dkms modules in same version:

$ dkms status rtl8812au, 4.3.14, 4.4.0-45-generic, x86_64: installed rtl8812au, 4.3.14, 4.4.0-47-generic, x86_64: installed 

when tried dkms uninstall -m rtl8812au -v 4.3.14 uninstalled second one. how uninstall first one? thanks!

you don't have 2 dkms modules. have one dkms module built two different kernel versions.

as rule of thumb shouldn't manually uninstall dkms modules kernels still installed unless have specific reason.


if want uninstall module particular kernel, can refer dkms(8) manual:

-k <kernel-version>/<arch>

the kernel , arch perform action upon. can specify multiple kernel version/arch pairs on command line repeating -k argument different kernel version , arch. however, not actions support multiple kernel versions (it error out in case). arch part can omitted, , dkms assume want arch of running system.

so command uninstall module in question kernel 4.4.0-45-generic is:

dkms uninstall -k 4.4.0-45-generic rtl8812au 

you can omit module version since can't install multiple versions of module same kernel anyway.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User