Debian 13 NVIDIA Driver Install Guide 2026

Complete guide to installing NVIDIA drivers on Debian 13 (Trixie): archive repo, official NVIDIA repo, and .run installer compared with DKMS pitfalls

Table of contents
  1. 1.Introduction
  2. 2.Key Points & Parameter Comparison
  3. 3.Deep Dive & Operational Details
  4. 3.1.Dual-Half Driver Mechanism & DKMS Pitfall
  5. 3.2.Practical Configuration Differences Across Three Repositories
  6. 3.3.Avoiding Kernel Module Build Failures
  7. 4.Scenario-Based Selection & Pitfall Checklist
  8. 5.FAQ
  9. 6.Sources & References
Debian 13 NVIDIA Driver Install Guide 2026

Introduction

Debian 13 (Trixie) received its 13.8 point release on 21 November 2026, yet the default repositories still ship NVIDIA driver branches covering only Maxwell through Ada architectures (RTX 40 series). The newer RTX 50 series (Blackwell architecture) is unsupported. More critically, the bundled nvidia-driver and nvidia-kernel-open-dkms packages risk kernel-module build failures on the current kernel. Based on FOSS Linux hands-on testing, this article delineates the applicability boundaries of three driver sources — Debian archive, NVIDIA official debian13 repository, and the generic .run installer — and addresses the classic “black screen while nvidia-smi works” fault caused by kernel-module / user-space version skew. The goal is to give operators a practical selection and troubleshooting path for deploying CUDA, AI inference, or graphics workloads on Debian stable.

Key Points & Parameter Comparison

Dimension Debian Archive (non-free-firmware) NVIDIA Official debian13 Repo .run Generic Installer
Driver Branch Single legacy branch (e.g., 535/550) All current branches incl. 620 open kernel module Latest single version
Blackwell (RTX 50) Support No Yes (requires 620+ open kernel module branch) Supported but not recommended
DKMS Auto-Rebuild Yes Yes No (manual reinstall after kernel upgrade)
Package Name Conflict Risk Low High (reuses archive package names) No package management
Recommended Scenario Older GPUs, pure Debian ecosystem New GPUs, latest CUDA features Custom kernels / offline environments
Key Prerequisite Enable contrib and non-free-firmware Add NVIDIA GPG key and repo URL Stop GUI, install kernel headers

Deep Dive & Operational Details

Dual-Half Driver Mechanism & DKMS Pitfall

An NVIDIA driver consists of kernel modules (nvidia.ko, etc.) and user-space libraries (CUDA, OpenGL/Vulkan, X driver, nvidia-smi). Kernel modules manage VRAM, interrupts, and power state over PCIe; DKMS triggers automatic recompilation when Debian pushes a new kernel. FOSS Linux testing revealed that a kernel module at version 550 paired with user-space libraries at 560 yields a system where nvidia-smi returns normally over SSH but the local graphical session shows a black screen — the hallmark “module loaded, user-space version mismatch” failure. First diagnostic step: apt-cache policy nvidia-driver to verify all binary packages originate from the same source.

Practical Configuration Differences Across Three Repositories

Path 1: Debian Archive Repository (suitable for RTX 40 and older)

  1. Edit /etc/apt/sources.list; ensure main repository lines include contrib non-free-firmware (since Debian 12, non-free split into non-free-firmware and non-free).
  2. Run apt update && apt install nvidia-detect, then execute nvidia-detect to obtain the recommended package name (e.g., nvidia-driver or nvidia-driver-550).
  3. Install with apt install <recommended-package>; DKMS automatically pulls nvidia-kernel-dkms and builds the module.

Path 2: NVIDIA Official debian13 Repository (only native route for RTX 50)

  1. Import the GPG key and write /etc/apt/sources.list.d/nvidia.list per official docs; repository URL resembles deb https://developer.download.nvidia.com/compute/cuda/repos/debian13/x86_64 /.
  2. After apt update, packages such as nvidia-driver-620 and nvidia-kernel-open-dkms appear.
  3. Must explicitly install the open kernel module package: apt install nvidia-driver-620 nvidia-kernel-open-dkms; otherwise the proprietary module is pulled and Blackwell remains unsupported.
  4. Immediately verify with apt-cache policy nvidia-driver nvidia-kernel-open-dkms that both point to the NVIDIA repository, not the Debian archive.

Path 3: .run Installer (fallback only) Requires manually stopping the display manager, installing linux-headers-$(uname -r) and build-essential, and re-running the installer after every kernel upgrade. Strongly discouraged for production.

Avoiding Kernel Module Build Failures

On Debian 13.8’s current kernel (6.1.x LTS branch), nvidia-kernel-open-dkms may fail to compile due to missing kernel headers or GCC version mismatch. Practical advice: before installation, run apt install linux-headers-$(uname -r) gcc make. If DKMS logs report version magic mismatch, check for /usr/src/linux-headers-$(uname -r)/include/generated/autoconf.h. If dkms status shows the module as added rather than built, force a build with dkms install nvidia-kernel-open/620 -k $(uname -r).

Scenario-Based Selection & Pitfall Checklist

  1. Legacy GPUs (GTX 10 / RTX 20/30/40) + zero-maintenance goal — Use Path 1. Enable contrib non-free-firmware, then apt install nvidia-driver. DKMS fully automatic, no third-party repos.
  2. RTX 50 / Blackwell GPUs — Must use Path 2 (NVIDIA official debian13 repo) and explicitly install nvidia-kernel-open-dkms. Archive repo lacks the branch; .run lacks DKMS protection.
  3. Mixed-repo environments (previously added NVIDIA repo, now reverting to archive) — First apt purge 'nvidia-*' 'libnvidia-*', delete /etc/apt/sources.list.d/nvidia.list, then apt update and reinstall via Path 1. Otherwise apt-cache policy shows mixed sources, causing version tear.
  4. CUDA development / containerized deployment — Pair NVIDIA official repo with cuda-toolkit-12-x metapackage to lock driver and CUDA runtime versions. For container GPU passthrough only, install driver on host; containers use nvidia/cuda images with bundled runtime.
  5. Custom-compiled or rolled-back kernels — DKMS manages only kernels installed via package manager. For manually built or non-Debian kernels, manually run dkms install for the target kernel version, or fall back to .run installer (losing package-management benefits).

FAQ

Can the default Debian 13 nvidia-driver drive an RTX 50?

No. The archive repository branches cover only Maxwell through Ada; RTX 50 (Blackwell) requires the 620+ open kernel module branch, available exclusively in the NVIDIA official debian13 repository.

nvidia-smi works but desktop is black — how to troubleshoot?

This indicates kernel-module / user-space version mismatch. Run apt-cache policy nvidia-driver nvidia-kernel-dkms (or nvidia-kernel-open-dkms) and confirm every package shows identical candidate version numbers and the same repository origin. If versions or sources differ, purge all NVIDIA packages and reinstall from a single source.

Is it mandatory to install linux-headers before the driver?

Strongly recommended. DKMS compilation depends on the running kernel’s headers, which Debian does not install by default. Pre-running apt install linux-headers-$(uname -r) gcc make prevents DKMS build errors that leave the module missing.

Sources & References

Spotted outdated pricing, stock, or expired coupons?See methodology & report an update →

Related articles