How frustating owning an RTX5090 and the driver is missing automagically? Some of the error messages according to our RTX 5090 GPU are shown here
Failed to initialize NVML: Driver/library version mismatch NVML library version: 580.95
02:00.0 VGA compatible controller: NVIDIA Corporation Device 2b85 (rev a1) 02:00.1 Audio device: NVIDIA Corporation Device 22e8 (rev a1)
ERROR: Failed to load DKMS tarball: Error! nvidia-570.181 is already added! Aborting.
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Error! Bad return status for module build on kernel: 6.14.0-32-generic (x86_64) Consult /var/lib/dkms/nvidia/570.181/build/make.log for more information.
no devices were found
[ 9.685859] NVRM: The NVIDIA GPU 0000:02:00.0 (PCI ID: 10de:2b85) NVRM: installed in this system requires use of the NVIDIA open kernel modules.
[ 9.685875] NVRM: GPU 0000:02:00.0: RmInitAdapter failed! (0x22:0x56:884)
[ 9.686401] NVRM: GPU 0000:02:00.0: rm_init_adapter failed, device minor number 0
[ 9.712112] NVRM: The NVIDIA GPU 0000:02:00.0 (PCI ID: 10de:2b85) NVRM: installed in this system requires use of the NVIDIA open kernel modules.
[ 9.712145] NVRM: GPU 0000:02:00.0: RmInitAdapter failed! (0x22:0x56:884) [ 9.712511] NVRM: GPU 0000:02:00.0: rm_init_adapter failed, device minor number 0
[ 9.742219] NVRM: The NVIDIA GPU 0000:02:00.0 (PCI ID: 10de:2b85) NVRM: installed in this system requires use of the NVIDIA open kernel modules.
[ 9.742237] NVRM: GPU 0000:02:00.0: RmInitAdapter failed! (0x22:0x56:884)
[ 9.742773] NVRM: GPU 0000:02:00.0: rm_init_adapter failed, device minor number 0 [ 9.769103] NVRM: The NVIDIA GPU 0000:02:00.0 (PCI ID: 10de:2b85) NVRM: installed in this system requires use of the NVIDIA open kernel modules.
[ 9.769125] NVRM: GPU 0000:02:00.0: RmInitAdapter failed! (0x22:0x56:884)
[ 9.769694] NVRM: GPU 0000:02:00.0: rm_init_adapter failed, device minor number 0
[ 110.198707] NVRM: The NVIDIA GPU 0000:02:00.0 (PCI ID: 10de:2b85) NVRM: installed in this system requires use of the NVIDIA open kernel modules.
[ 110.198727] NVRM: GPU 0000:02:00.0: RmInitAdapter failed! (0x22:0x56:884)
[ 110.199156] NVRM: GPU 0000:02:00.0: rm_init_adapter failed, device minor number 0
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:2b85] (rev a1)
02:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:22e8] (rev a1)
how to solve?sudo apt update
sudo apt --purge remove "*nvidia*" "*cuda*" "*libnvidia*"
sudo apt autoremove
sudo apt autoclean
sudo rm -rf /var/lib/dkms/nvidia/
sudo update-initramfs -u
sudo reboot
then install the official drivers from nvidia, ours was NVIDIA-Linux-x86_64-580.95.05.run . ./NVIDIA-Linux-x86_64-580.95.05.run
and… magic happens!!

CHEERS!
