Unable to load Nvidia driver

I’ve reinstalled opensuse leap 15.6 and got it running on my system with a GPU card of Nvidia Quadro P4000. I added the Nvidia repo to the system and did a load of all the drivers as determined by ‘zypper inr’.

Currently I’m not seeing the drivers. Here is my graphics layout:

~ >inxi -Ga
Graphics:
  Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] vendor: Micro-Star MSI
    driver: N/A alternate: i915 arch: Gen-13 process: Intel 7 (10nm)
    built: 2022+ bus-ID: 00:02.0 chip-ID: 8086:a780 class-ID: 0380
  Device-2: NVIDIA GP104GL [Quadro P4000] vendor: Dell driver: N/A
    alternate: nouveau, nvidia_drm, nvidia non-free: 530.xx+
    status: current (as of 2023-05) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:1bb1 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.11 with: Xwayland v: 24.1.1
    compositor: kwin_x11 driver: X: loaded: N/A unloaded: fbdev,modesetting,vesa
    failed: nvidia alternate: nouveau,nv gpu: N/A display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
    s-diag: 777mm (30.58")
  Monitor-1: default res: 2560x1440 hz: 93 size: N/A modes: N/A
  API: OpenGL v: 4.5 Mesa 23.3.4 renderer: llvmpipe (LLVM 17.0.6 256 bits)
    direct-render: Yes

My hardware is as follows:

~ >inxi -b
System:
  Host: localhost Kernel: 6.4.0-150600.23.60-default arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.11 Distro: openSUSE Leap 15.6
Machine:
  Type: Desktop Mobo: Micro-Star model: MPG Z790 CARBON MAX WIFI II (MS-7D89)
    v: 2.0 serial: 07D8924_O51E486719 UEFI: American Megatrends LLC. v: A.80
    date: 04/14/2025
CPU:
  Info: single core Intel Core i7-14700K [N/A] speed (MHz): 800
    min/max: 800/5500
Graphics:
  Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] driver: N/A
  Device-2: NVIDIA GP104GL [Quadro P4000] driver: N/A
  Display: x11 server: X.Org v: 1.21.1.11 with: Xwayland v: 24.1.1 driver:
    X: loaded: N/A unloaded: fbdev,modesetting,vesa failed: nvidia gpu: N/A
    resolution: 2560x1440~93Hz
  API: OpenGL v: 4.5 Mesa 23.3.4 renderer: llvmpipe (LLVM 17.0.6 256 bits)
Network:
  Device-1: Realtek RTL8126 5GbE driver: r8169
  Device-2: Qualcomm WCN785x Wi-Fi 7 320MHz 2x2 [FastConnect 7800]
    driver: ath12k_pci
Drives:
  Local Storage: total: 21.87 TiB used: 6.73 TiB (30.8%)
Info:
  Processes: 264 Uptime: 1h 42m Memory: available: 94.01 GiB
  used: 4.46 GiB (4.7%) Shell: Bash inxi: 3.3.27

Does anyone have any suggestions as to how I can get the drivers to load?

Please post:

zypper lr -d
zypper se -si nvidia

Here it is:

~ >zypper lr -d
#  | Alias                                        | Name                                                                                        | Enabled | GPG Check | Refresh | Keep | Priority | Type   | URI                                                                     | Service
---+----------------------------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+------+----------+--------+-------------------------------------------------------------------------+--------
 1 | ftp.gwdg.de-openSUSE_Leap_$releasever        | Packman Repository                                                                          | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.6/      | 
 2 | nvidia                                       | nvidia                                                                                      | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/15.6                          | 
 3 | openSUSE-Leap-15.6-1                         | openSUSE-Leap-15.6-1                                                                        | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/oss/           | 
 4 | opensuse-guide.org-openSUSE_Leap_$releasever | Libdvdcss Repository                                                                        | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_15.6/                      | 
 5 | repo-backports-debug-update                  | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/update/leap/15.6/backports_debug/          | 
 6 | repo-backports-update                        | Update repository of openSUSE Backports                                                     | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/backports/                | 
 7 | repo-debug                                   | Debug Repository                                                                            | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.6/repo/oss/     | 
 8 | repo-debug-non-oss                           | Debug Repository (Non-OSS)                                                                  | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.6/repo/non-oss/ | 
 9 | repo-debug-update                            | Update Repository (Debug)                                                                   | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.6/oss                 | 
10 | repo-debug-update-non-oss                    | Update Repository (Debug, Non-OSS)                                                          | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.6/non-oss/            | 
11 | repo-non-oss                                 | Non-OSS Repository                                                                          | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/non-oss/       | 
12 | repo-openh264                                | Open H.264 Codec (openSUSE Leap)                                                            | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Leap/                      | 
13 | repo-oss                                     | Main Repository                                                                             | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/oss/           | 
14 | repo-sle-debug-update                        | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.6/sle/                | 
15 | repo-sle-update                              | Update repository with updates from SUSE Linux Enterprise 15                                | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/sle/                      | 
16 | repo-source                                  | Source Repository                                                                           | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.6/repo/oss/    | 
17 | repo-update                                  | Main Update Repository                                                                      | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/oss                       | 
18 | repo-update-non-oss                          | Update Repository (Non-Oss)                                                                 | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/non-oss/                  | 

~ >zypper se -si nvidia
Loading repository data...
Reading installed packages...

S  | Name                          | Type    | Version                               | Arch   | Repository
---+-------------------------------+---------+---------------------------------------+--------+-------------------------------------------------------------
i  | kernel-firmware-nvidia        | package | 20250205-150600.3.15.1                | noarch | Update repository with updates from SUSE Linux Enterprise 15
i  | libnvidia-egl-gbm1            | package | 1.1.2-lp156.5.1                       | x86_64 | nvidia
i  | libnvidia-gpucomp             | package | 580.76.05-lp156.39.1                  | x86_64 | nvidia
i  | nvidia-common-G06             | package | 580.76.05-lp156.39.1                  | x86_64 | nvidia
i  | nvidia-driver-G06-kmp-default | package | 550.90.07_k6.4.0_150600.21-lp156.23.2 | x86_64 | nvidia
i  | nvidia-gl-G06                 | package | 580.76.05-lp156.39.1                  | x86_64 | nvidia
i  | nvidia-modprobe               | package | 580.76.05-lp156.17.1                  | x86_64 | nvidia
i  | nvidia-video-G06              | package | 580.76.05-lp156.39.1                  | x86_64 | nvidia
i  | nvidia-xconfig                | package | 580.76.05-lp156.2.1                   | x86_64 | nvidia

Thanks for your quick reply.

The kmp version 550.xx does not match all other packages at 580.76.05.
Look in YaST2-Software for a matching nvidia-driver-G06-kmp-default, switch to it and reboot.

Here is what it looks like now:

~ >zypper se -si nvidia
Loading repository data...
Reading installed packages...

S  | Name                          | Type    | Version                               | Arch   | Repository
---+-------------------------------+---------+---------------------------------------+--------+-------------------------------------------------------------
i  | kernel-firmware-nvidia        | package | 20250205-150600.3.15.1                | noarch | Update repository with updates from SUSE Linux Enterprise 15
i  | libnvidia-egl-gbm1            | package | 1.1.2-lp156.5.1                       | x86_64 | nvidia
i  | libnvidia-gpucomp             | package | 580.76.05-lp156.39.1                  | x86_64 | nvidia
i  | nvidia-common-G06             | package | 580.76.05-lp156.39.1                  | x86_64 | nvidia
i  | nvidia-compute-G06            | package | 580.76.05-lp156.39.1                  | x86_64 | nvidia
i  | nvidia-compute-utils-G06      | package | 580.76.05-lp156.39.1                  | x86_64 | nvidia
i+ | nvidia-driver-G06-kmp-default | package | 580.76.05_k6.4.0_150600.21-lp156.39.1 | x86_64 | nvidia
i  | nvidia-gl-G06                 | package | 580.76.05-lp156.39.1                  | x86_64 | nvidia
i  | nvidia-modprobe               | package | 580.76.05-lp156.17.1                  | x86_64 | nvidia
i  | nvidia-persistenced           | package | 580.76.05-lp156.2.1                   | x86_64 | nvidia
i  | nvidia-userspace-meta-G06     | package | 580.76.05-lp156.11.1                  | noarch | nvidia
i  | nvidia-video-G06              | package | 580.76.05-lp156.39.1                  | x86_64 | nvidia
i  | nvidia-xconfig                | package | 580.76.05-lp156.2.1                   | x86_64 | nvidia
~ >

But it didn’t do any good.
Still the same problem.

~ >inxi -Ga
Graphics:
  Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] vendor: Micro-Star MSI
    driver: N/A alternate: i915 arch: Gen-13 process: Intel 7 (10nm)
    built: 2022+ bus-ID: 00:02.0 chip-ID: 8086:a780 class-ID: 0380
  Device-2: NVIDIA GP104GL [Quadro P4000] vendor: Dell driver: N/A
    alternate: nouveau, nvidia_drm, nvidia non-free: 530.xx+
    status: current (as of 2023-05) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:1bb1 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.11 with: Xwayland v: 24.1.1
    compositor: kwin_x11 driver: X: loaded: N/A unloaded: fbdev,modesetting,vesa
    failed: nvidia alternate: nouveau,nv gpu: N/A display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
    s-diag: 777mm (30.58")
  Monitor-1: default res: 2560x1440 hz: 93 size: N/A modes: N/A
  API: OpenGL v: 4.5 Mesa 23.3.4 renderer: llvmpipe (LLVM 17.0.6 256 bits)
    direct-render: Yes

Is there something else I should be doing?

Did you reboot after the new kmp was installed?
If so, what is the output of (as root user):

lsmod |grep nvidia
modprobe nvidia

Another possibility, is SecureBoot enabled? If so, did you enroll the new key after install of the kmp (a blue screen just after reboot)?

Gives a blank. Nothing returned.

~ >modprobe nvidia
modprobe: ERROR: could not insert 'nvidia': No such device
~ >

Thanks again for the quick reply.

I’m sorry - I forgot to answer your question:

Secure boot is disabled in the s/w and the BIOS.

Please, the output of

lspci | grep -EA3 "VGA|3D"

as root user;

The result is:

~ >lspci | grep -EA3 "VGA|3D"
01:00.0 VGA compatible controller: NVIDIA Corporation GP104GL [Quadro P4000] (rev a1)
02:00.0 Non-Volatile memory controller: Intel Corporation SSD 660P Series (rev 03)
03:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO
04:00.0 USB controller: ASMedia Technology Inc. ASM3242 USB 3.2 Host Controller
~ >

Strange, where has the Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] gone? Let’s try with:

lspci -nnk | grep -EA3 "VGA|3D"
~ >lspci -nnk | grep -EA3 "VGA|3D"
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104GL [Quadro P4000] [10de:1bb1] (rev a1)
        Subsystem: Dell Device [1028:11a3]
        Kernel modules: nouveau, nvidia_drm, nvidia
02:00.0 Non-Volatile memory controller [0108]: Intel Corporation SSD 660P Series [8086:f1a8] (rev 03)
~ >

The system appears to have two GPUs, is the Intel disabled or?
Let’s see if the following shows something more:

inxi -GSaz --za
lspci -nnk | grep Intel
System:
  Kernel: 6.4.0-150600.23.60-default arch: x86_64 bits: 64 compiler: gcc
    v: 7.5.0 parameters: BOOT_IMAGE=/boot/vmlinuz-6.4.0-150600.23.60-default
    root=UUID=<filter> splash=silent acpi=off preempt=full mitigations=auto
    quiet security=apparmor rd.driver.blacklist=nouveau
  Desktop: KDE Plasma v: 5.27.11 tk: Qt v: 5.15.12 wm: kwin_x11 vt: 2
    dm: SDDM Distro: openSUSE Leap 15.6
Graphics:
  Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] vendor: Micro-Star MSI
    driver: N/A alternate: i915 arch: Gen-13 process: Intel 7 (10nm)
    built: 2022+ bus-ID: 00:02.0 chip-ID: 8086:a780 class-ID: 0380
  Device-2: NVIDIA GP104GL [Quadro P4000] vendor: Dell driver: N/A
    alternate: nouveau, nvidia_drm, nvidia non-free: 530.xx+
    status: current (as of 2023-05) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:1bb1 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.11 with: Xwayland v: 24.1.1
    compositor: kwin_x11 driver: X: loaded: N/A unloaded: fbdev,modesetting,vesa
    failed: nvidia alternate: nouveau,nv gpu: N/A display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
    s-diag: 777mm (30.58")
  Monitor-1: default res: 2560x1440 hz: 93 size: N/A modes: N/A
  API: OpenGL v: 4.5 Mesa 23.3.4 renderer: llvmpipe (LLVM 17.0.6 256 bits)
    direct-render: Yes
~ >

~ >lspci -nnk | grep Intel
00:00.0 Host bridge [0600]: Intel Corporation Raptor Lake-S 8+12 - Host Bridge/DRAM Controller [8086:a740] (rev 01)
00:01.0 PCI bridge [0604]: Intel Corporation Raptor Lake PCI Express 5.0 Graphics Port (PEG010) [8086:a70d] (rev 01)
00:01.1 PCI bridge [0604]: Intel Corporation Device [8086:a72d] (rev 01)
00:02.0 Display controller [0380]: Intel Corporation Raptor Lake-S GT1 [UHD Graphics 770] [8086:a780] (rev 04)
00:06.0 PCI bridge [0604]: Intel Corporation Raptor Lake PCIe 4.0 Graphics Port [8086:a74d] (rev 01)
00:08.0 System peripheral [0880]: Intel Corporation GNA Scoring Accelerator module [8086:a74f] (rev 01)
00:0a.0 Signal processing controller [1180]: Intel Corporation Raptor Lake Crashlog and Telemetry [8086:a77d] (rev 01)
00:14.0 USB controller [0c03]: Intel Corporation Raptor Lake USB 3.2 Gen 2x2 (20 Gb/s) XHCI Host Controller [8086:7a60] (rev 11)
00:14.2 RAM memory [0500]: Intel Corporation Raptor Lake-S PCH Shared SRAM [8086:7a27] (rev 11)
00:16.0 Communication controller [0780]: Intel Corporation Raptor Lake CSME HECI #1 [8086:7a68] (rev 11)
00:17.0 SATA controller [0106]: Intel Corporation Raptor Lake SATA AHCI Controller [8086:7a62] (rev 11)
00:1a.0 PCI bridge [0604]: Intel Corporation Raptor Lake PCI Express Root Port #25 [8086:7a48] (rev 11)
00:1c.0 PCI bridge [0604]: Intel Corporation Raptor Lake PCI Express Root Port #1 [8086:7a38] (rev 11)
00:1c.1 PCI bridge [0604]: Intel Corporation Device [8086:7a39] (rev 11)
00:1c.2 PCI bridge [0604]: Intel Corporation Raptor Point-S PCH - PCI Express Root Port 3 [8086:7a3a] (rev 11)
00:1c.3 PCI bridge [0604]: Intel Corporation Raptor Lake PCI Express Root Port #4 [8086:7a3b] (rev 11)
00:1c.4 PCI bridge [0604]: Intel Corporation Device [8086:7a3c] (rev 11)
00:1d.0 PCI bridge [0604]: Intel Corporation Raptor Lake PCI Express Root Port #9 [8086:7a30] (rev 11)
00:1f.0 ISA bridge [0601]: Intel Corporation Raptor Lake LPC/eSPI Controller [8086:7a04] (rev 11)
00:1f.3 Audio device [0403]: Intel Corporation Raptor Lake High Definition Audio Controller [8086:7a50] (rev 11)
00:1f.4 SMBus [0c05]: Intel Corporation Raptor Lake-S PCH SMBus Controller [8086:7a23] (rev 11)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Raptor Lake SPI (flash) Controller [8086:7a24] (rev 11)
02:00.0 Non-Volatile memory controller [0108]: Intel Corporation SSD 660P Series [8086:f1a8] (rev 03)
        Subsystem: Intel Corporation Device [8086:390d]
~ >

OK, two GPUs, one Display controller, the other VGA controller.
How are you switching the one in use? Did you try Switcheroo Control ?
The SDB refers to Tumbleweed, but I booted a 15.6 test install of mine and it works as well. When installed and enabled you should see something like:

beta_bruno@localhost:~> switcherooctl list
Device: 0
  Name:        Intel® HD Graphics 4600
  Default:     yes
  Environment: DRI_PRIME=pci-0000_00_02_0

Device: 1
  Name:        NVIDIA Corporation GM107M [GeForce GTX 960M]
  Default:     no
  Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only
beta_bruno@localhost:~>

But I doubt that it will show the Nvidia if the nvidia driver refuses to load…

The Quadro’s are picky at times, I’m running out of ideas and it is very late at night here…
Maybe @malcolmlewis has better ideas about the Quadro P4000? He might have some at hand and is in a better time zone :wink:

@Babe What is this option present?

Neither the Intel or nvidia driver is loading. Sure secure boot is off?

Why the older driver? That GPU is supported by the G06 driver and will be for awhile…

Likewise you may be hit by this bug created by @Jniko https://bugzilla.suse.com/show_bug.cgi?id=1248132

What is the status of the Intel and Nvidia GPU in the BIOS?

Not sure, but apparently on Leap 15.6 you need to have

i+ | kernel-default-devel    | package | 6.4.0-150600.21.3    | x86_64 | repo-oss (15.6)

installed for the Nvidia drivers to build, even if you have no longer a kernel installed at version 6.4.0-150600.21.3.
For instance here is what I have on this test install:

localhost:~ # zypper --no-refresh se -si kernel-def
Loading repository data...
Reading installed packages...

S  | Name                    | Type    | Version              | Arch   | Repository
---+-------------------------+---------+----------------------+--------+------------------
i+ | kernel-default          | package | 6.4.0-150600.23.60.5 | x86_64 | update-sle (15.6)
i+ | kernel-default-devel    | package | 6.4.0-150600.23.60.5 | x86_64 | update-sle (15.6)
i+ | kernel-default-devel    | package | 6.4.0-150600.21.3    | x86_64 | repo-oss (15.6)
i+ | kernel-default-extra    | package | 6.4.0-150600.23.60.5 | x86_64 | update-sle (15.6)
i+ | kernel-default-optional | package | 6.4.0-150600.23.60.5 | x86_64 | update-sle (15.6)
localhost:~ #

Hello,

I have created a bug report for the Nvidia drivers version 580, which was solved by the link @malcolmlewis posted before.

To help everyone to load these drivers on Leap 15.6 you have to do the follow and run the commands one by one and then reboot:

I guess you need to reinstall kernel-default-devel-6.4.0-150600.21.3.x86_64

  sudo rpm -e kernel-default-devel-6.4.0-150600.21.3.x86_64 --nodeps
  sudo zypper in --oldpackage kernel-default-devel = 6.4.0-150600.21.3

and maybe also kernel-devel-6.4.0-150600.21.2.noarch

  sudo rpm -e  kernel-devel-6.4.0-150600.21.2.noarch --nodeps
  sudo zypper in --oldpackage  kernel-devel = 6.4.0-150600.21.2

Then try reinstalling nvidia-driver-G06-kmp-default-580.76.05_k6.4.0_150600.21-lp156.39.1.x86_64

  sudo rpm -e nvidia-driver-G06-kmp-default-580.76.05_k6.4.0_150600.21-lp156.39.1.x86_64 --nodeps
  sudo zypper in nvidia-driver-G06-kmp-default = 580.76.05_k6.4.0_150600.21-lp156.39.1

If on build process have errors for missing modules like the below:

gzip: warning: GZIP environment variable is deprecated; use an alias or script
depmod: ERROR: fstatat(5, nvidia-drm.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia-modeset.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia-uvm.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia.ko): No such file or directory
gzip: warning: GZIP environment variable is deprecated; use an alias or script
depmod: ERROR: fstatat(5, nvidia-drm.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia-modeset.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia-uvm.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia.ko): No such file or directory

nothing is going to work…

Follow the instructions above and see the link posted by @malcolmlewis

Also a similar thread which solved by this way:

Regards,
Jim

Thanks @Jniko for the help. I’ll try that tonight after work.

I followed the instructions set out by @Jniko and all went well, but I’m still in the same shape. When I use prime-select nvidia and reboot, it goes into text mode and I get a message

Failed to start NVIDIA Persistence Daemon.

Do you have any further suggestions?
Thanks for the effort.