modprobe: ERROR: could not insert 'nvidia_current': Key was rejected by
service
modprobe: ERROR: ../libkmod-module.c:1084 command_do() Errror running
install command 'modprobe -i nvidia-current ' for module nvidia: retcode 1
modprobe: ERROR: could not insert 'nvidia': Invalid argument
I enabled the UEFI Secure Boot and then the nvidia-driver did not load.
I tried to sign the kernel modules and the Linux kernel itself, also
tried to reinstall the nvidia-driver package with Secure Boot enabled,
but nothing worked and the error message remain the same.
I followed the instructions from here
(https://wiki.debian.org/SecureBoot#MOK_-_Machine_Owner_Key) and tried
to run:
$ modprobe nvidia
after reboot.
There are no extra configuration at all with nvidia-driver, I am using
the default installation that comes after installing nvidia-driver from APT.
The driver only works with Secure Boot disabled.
Unfortunately, the first three lines in this bug report is everything
that 'journalctl -xe', 'systemctl' and 'modprobe' returned about this
problem. I had to disable Secure Boot to make this bug report.