Confirming that Dann Frazier's answer does make it possible to load the
Nvidia drivers.

I upgraded to 23.04 (from 22.10) and got kernel 6.2.0-25. Tried all
sorts of different ways to manually sign the Nvidia drivers but nothing
worked; the Nvidia drivers would always fail to load.

Here all the steps I took to fix this:

# I removed all packages related to Nvidia as I wanted a clean slate
sudo apt purge nvidia*

# Installed the driver but also the pre-signed module as Dann Frazier suggested
sudo apt install nvidia-driver-535 linux-modules-nvidia-535-generic

# The previous command will install some packages for kernel 6.2.0-24 but 
you're still missing the modules extra package; install it now:
sudo apt install linux-modules-extra-6.2.0-24-generic

Now reboot and make sure you boot into the 6.2.0-24 kernel and the
Nvidia drivers should now load.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-restricted-modules in Ubuntu.
https://bugs.launchpad.net/bugs/1921536

Title:
  "modprobe: ERROR: could not insert 'nvidia': Key was rejected by
  service" due to binutils mismatch

Status in linux package in Ubuntu:
  Confirmed
Status in linux-restricted-modules package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-525 package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-535 package in Ubuntu:
  Confirmed

Bug description:
  If a user does not have the same version of binutils installed as the
  one used to produce the nvidia module signature, the module generated
  at postinst maybe unloadable:

  modprobe: ERROR: could not insert 'nvidia': Key was rejected by
  service

  I ran into this when I tried to install the hirsute kernel/nvidia
  driver on a focal system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1921536/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to