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.
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# 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.gpgdeb 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/ /echo "blacklist nouveau
options nouveau modeset=0" | sudo tee /etc/modprobe.d/blacklist-nouveau.confsudo 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 pciutilsFor AI-computation so far (03/2026) the open drivers have shown better compatibility. They can be installed using:
sudo apt-get install nvidia-opensudo apt-get install cuda-driversWhile 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
.runfile - 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
- 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.) ***