Installing NVIDIA RTX 50 Series Drivers on Debian/Ubuntu
Inspired by Vlad’s article https://spin.atomicobject.com/nvidia-rtx-50-ubuntu/. The article is pretty much complete, the only issue you may face is with driver/module mismatch. So when you in open-gpu-kernel-modules directory, just make sure you are on the right branch. For example right now the latest driver is 570.169
git clone https://github.com/NVIDIA/open-gpu-kernel-modules.git
cd open-gpu-kernel-modules
git checkout 570
git clone https://github.com/NVIDIA/open-gpu-kernel-modules.git
cd open-gpu-kernel-modules
git checkout 570
then build and install, as the article suggests.
You may go without rebooting, just unload your previous modules
sudo rmmod nvidia_drm nvidia_modeset nvidia_uvm nvidia
sudo rmmod nvidia_drm nvidia_modeset nvidia_uvm nvidia
and try the newly built module
sudo modprobe nvidia
sudo modprobe nvidia
Now you can check, what you actually have built:
# cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX Open Kernel Module for x86_64 570.169 Release Build (root@vdllama) Tue Jul 1 01:20:57 PM PDT 2025
GCC version: gcc version 12.2.0 (Debian 12.2.0-14+deb12u1)
# cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX Open Kernel Module for x86_64 570.169 Release Build (root@vdllama) Tue Jul 1 01:20:57 PM PDT 2025
GCC version: gcc version 12.2.0 (Debian 12.2.0-14+deb12u1)
Now you need to download exactly the same version
wget https://in.download.nvidia.com/XFree86/Linux-x86_64/570.169/NVIDIA-Linux-x86_64-570.169.run
wget https://in.download.nvidia.com/XFree86/Linux-x86_64/570.169/NVIDIA-Linux-x86_64-570.169.run
Try to install. Don’t forget to select MIT/GPL
chmod +x NVIDIA-Linux-x86_64-570.169.run
sudo ./NVIDIA-Linux-x86_64-570.169.run --no-kernel-modules
chmod +x NVIDIA-Linux-x86_64-570.169.run
sudo ./NVIDIA-Linux-x86_64-570.169.run --no-kernel-modules
If all was done correctly, you’re going to get a positive nvidia-smi results
nvidia-smi
Tue Jul 1 14:27:29 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.169 Driver Version: 570.169 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5090 Off | 00000000:02:00.0 Off | N/A |
| 33% 27C P8 13W / 575W | 3MiB / 32607MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
nvidia-smi
Tue Jul 1 14:27:29 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.169 Driver Version: 570.169 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5090 Off | 00000000:02:00.0 Off | N/A |
| 33% 27C P8 13W / 575W | 3MiB / 32607MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
Congratulation! we made it
