Unable to load the kernel module ‘nvidia.ko’ for CentOS Linux release 7.9

We downloaded .run files of Nvidia 460 Driver.(NVIDIA-Linux-x86_64-460.106.00.run) and ran it on CentOS OS.

GPU - A30
OS - CentOS
Installation - offline

This is an offline installation. The server doesn’t have internet connection. We have tried multiple config settings and it’s failing everytime

Error: Unable to load the kernel module ‘nvidia.ko’.
The logs are attached.
nvidia-installer.log (264.8 KB)

The error is in the log here:

ERROR: The kernel module failed to load, because it was not signed by a key that is trusted by the kernel. Please try installing the driver again, and sign the kernel module when prompted to do so.

My recommendation would be to completely disable secure boot. Switch your BIOS to a non-secure-boot setting, and remove the PK (platform key). After doing that, it’s possible your OS install may refuse to load. In that case reinstall the OS.

Alternatively, run the driver-installer in expert mode (-e) and follow the instructions to generate new keys. However this may not fix it. The kernel may not trust the new key.