Nvidia dkms unable to remove module

Upgraded today the kernel from 5.13.13-hardened to 5.13.14-hardened and it seems that there is a problem with the dkms-remove.hook as per details below.

[2021-09-07T12:05:20-0300] [ALPM] running '71-dkms-remove.hook'...
[2021-09-07T12:05:20-0300] [ALPM-SCRIPTLET] ==> Unable to remove module nvidia/470.63.01 for kernel 5.13.13-hardened1-1-hardened: Not found in dkms status output.
$ dkms status
nvidia/470.63.01, 5.13.13-arch1-1, x86_64: installed
nvidia/470.63.01, 5.13.13-hardened1-1-hardened, x86_64: installed (WARNING! Missing some built modules!) (WARNING! Missing some built modules!) (WARNING! Missing some built modules!) (WARNING! Missing some built modules!) (WARNING! Missing some built modules!)
nvidia/470.63.01, 5.13.14-hardened1-1-hardened, x86_64: installed

https://bugs.archlinux.org/task/72046
https://bugs.archlinux.org/task/72048

Everything is working, kernel updated successfully, should I do something to fix it manually or it’s okay to leave it like this?

Me too, I had this though for another module. I’ve ignored it so far. Everything works fine on my end as well.

[2021-09-07T07:10:26+0200] [ALPM] running '71-dkms-remove.hook'...
[2021-09-07T07:10:26+0200] [ALPM-SCRIPTLET] ==> Unable to remove module vboxhost/6.1.26_OSE for kernel 5.14.1-zen1-1-zen: Not found in dkms status output.

edit- sorry I posted the wrong part first :blush:

1 Like

no problem :slight_smile:
I’m trying to fix, but there is a big chance that I’m going to break my system…

1 - sudo dkms remove --no-depmod nvidia/470.63.01 --all
2 - sudo nvidia-installer-dkms

Now I’ll reboot to test if everything is working :slight_smile:

Edit: Rebooted and it’s working…

$ dkms status
nvidia/470.63.01, 5.13.13-arch1-1, x86_64: installed
nvidia/470.63.01, 5.13.14-hardened1-1-hardened, x86_64: installed
1 Like

Check this topic:
https://bbs.archlinux.org/viewtopic.php?id=258024

1 Like

Thanks! I’ll have a look.

1 Like

This means the module wasn’t successfully built for the previous kernel and so DKMS can’t remove it (because it’s not there).

Generally, if you didn’t spot a failed DKMS module build during an update process then you’d spot it on reboot because something wasn’t working (in the case of nvidia, the display).

If the nvidia module is working with your currently-booted 5.13.14 then you’re fine.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.