Skip to content

chtugha/debian-nvidia-drivers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 

Repository files navigation

Installing Latest NVIDIA Drivers on Debian 12 or 13

The most Debian-friendly way to get the latest drivers from NVIDIA is through their CUDA downloads, which also includes the latest packaged drivers. This method is recommended over using the .run file or adding unstable repositories.

Instructions for Debian 12

These instructions are valid for Debian 12 and the current NVIDIA CUDA repository:

# Download and install the CUDA keyring
wget https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb

Instructions for Debian 13

# Download and install the CUDA keyring
wget https://developer.download.nvidia.com/compute/cuda/repos/debian13/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb

sudo curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/debian13/x86_64/8793F200.pub \
  | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-cuda-debian13.gpg

Thats how your /etc/apt/sources.list should now look like

deb http://deb.debian.org/debian trixie main contrib non-free non-free-firmware
deb http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware

# CUDA
deb [signed-by=/usr/share/keyrings/nvidia-cuda-debian13.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian13/x86_64/ /

Blacklist the Nouveau driver

echo "blacklist nouveau
options nouveau modeset=0" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf

Update package list and install prerequesites

sudo apt-get update
sudo apt-get install -y build-essential dkms linux-headers-$(uname -r) linux-headers-amd64 firmware-linux firmware-misc-nonfree firmware-nvidia-graphics pciutils

NVIDIA Open Driver

For AI-computation so far (03/2026) the open drivers have shown better compatibility. They can be installed using:

sudo apt-get install nvidia-open

Alternative: Install official CUDA drivers

sudo apt-get install cuda-drivers

Why This Method?

While this approach is far from ideal or Debian'ish, it's considered the best option because:

  • No alternatives: There's no way to get the latest driver on Debian without adding another repository or using the problematic .run file
  • Clean repository: NVIDIA maintains a relatively tidy repository with only driver and CUDA development tool packages, which is much safer compared to adding Sid/experimental/Ubuntu/PPA repositories
  • Proven reliability: This method has been used successfully for years without any problems
  • Official source: Uses NVIDIA's official repository rather than third-party sources
root  ~  dkms status && lsmod | grep -i nvidia
nvidia/580.65.06, 6.12.41+deb13-amd64, x86_64: installed
nvidia_uvm           2060288  0
nvidia_drm            139264  9
nvidia_modeset       1851392  16 nvidia_drm
nvidia              111403008  240 nvidia_uvm,nvidia_modeset
drm_ttm_helper         16384  2 nvidia_drm
drm_kms_helper        253952  2 drm_ttm_helper,nvidia_drm
video                  81920  1 nvidia_modeset
drm                   774144  15 drm_kms_helper,nvidia,drm_ttm_helper,nvidia_drm,ttm  

Notes

  • This method has been tested and used reliably for several years
  • The NVIDIA repository is considered safer than other third-party options
  • Both proprietary and open-source NVIDIA drivers are available through this repository

*** This was taken from Reddit and adjusted for Debian13 (original author is lost by me.) ***

About

Explanatory : how to install official Nvidia drivers on Debian 12 and Debian 13

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors