Comment 10 for bug 1993019

Revision history for this message
JK (m0d) wrote (last edit ):

I've just experienced the same issue, but with the ubuntu driver tool GUI (on Ubuntu 22.04).

I tried to change the NVIDIA drivers from 515 to 520-open. After asking for my password I got a pop-up with a big grey "X" and an "OK" button, but no text. Not helpful at all. Then I took a look at the installed "*nvidia*" packages with dpkg and noticed that all 515 packages had been removed but no 520 packages had been installed. When executing "ubuntu-drivers autoinstall" I got the same Python exception as above.

After that, I installed the 520 drivers with

"apt install nvidia-driver-520-open"

However, that didn't really work. After the reboot, I got a Kernel Oops:

[ 7.678638] NVRM: Open nvidia.ko is only ready for use on Data Center GPUs.
[ 7.678640] NVRM: To force use of Open nvidia.ko on other GPUs, see the
[ 7.678641] NVRM: 'OpenRmEnableUnsupportedGpus' kernel module parameter described
[ 7.678642] NVRM: in the README.
[ 7.680890] RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-400:00: attached PHY driver (mii_bus:phy_addr=r8169-0-400:00, irq=MAC)
[ 8.243707] NVRM s_executeBooterUcode_TU102: Booter failed with non-zero error code: 0xa
[ 8.243709] NVRM kgspExecuteBooterUnloadIfNeeded_TU102: failed to execute Booter Unload: 0xffff
[ 8.243713] NVRM nvAssertFailedNoLog: Assertion failed: rmStatus == NV_OK @ osinit.c:1982
[ 8.244983] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x63:0x0:1900)
[ 8.245515] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 8.245564] [drm:nv_drm_load [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NvKmsKapiDevice
[ 8.245660] [drm:nv_drm_probe_devices [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to register device
[ 8.245666] BUG: kernel NULL pointer dereference, address: 0000000000000040
[ 8.245709] #PF: supervisor read access in kernel mode
[ 8.245722] #PF: error_code(0x0000) - not-present page
[ 8.245733] PGD 0 P4D 0
[ 8.245739] Oops: 0000 [#1] SMP NOPTI

Now I'm not sure if this is a driver issue or due to the way it has been installed ("520-open" is the recommended driver, so I assume that it should work). Anyway, that bug in ubuntu-drivers is a serious issue and should be fixed as soon as possible...

Update: Fixed by "apt install nvidia-driver-520". It seems like the "520-open" driver does not really work with consumer GPUs (at least not with my RTX 3060 TI). But then why is it marked as "recommended" and "tested" in the ubuntu-drivers tool? That should probably also be fixed...