Debian 13 NVIDIA Driver Install Guide 2026
Published 2026-11-27Category: Guides
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.Introduction
- 2.Key Points & Parameter Comparison
- 3.Deep Dive & Operational Details
- 3.1.Dual-Half Driver Mechanism & DKMS Pitfall
- 3.2.Practical Configuration Differences Across Three Repositories
- 3.3.Avoiding Kernel Module Build Failures
- 4.Scenario-Based Selection & Pitfall Checklist
- 5.FAQ
- 6.Sources & References

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)
- Edit
/etc/apt/sources.list; ensure main repository lines includecontrib non-free-firmware(since Debian 12,non-freesplit intonon-free-firmwareandnon-free). - Run
apt update && apt install nvidia-detect, then executenvidia-detectto obtain the recommended package name (e.g.,nvidia-driverornvidia-driver-550). - Install with
apt install <recommended-package>; DKMS automatically pullsnvidia-kernel-dkmsand builds the module.
Path 2: NVIDIA Official debian13 Repository (only native route for RTX 50)
- Import the GPG key and write
/etc/apt/sources.list.d/nvidia.listper official docs; repository URL resemblesdeb https://developer.download.nvidia.com/compute/cuda/repos/debian13/x86_64 /. - After
apt update, packages such asnvidia-driver-620andnvidia-kernel-open-dkmsappear. - 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. - Immediately verify with
apt-cache policy nvidia-driver nvidia-kernel-open-dkmsthat 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
- Legacy GPUs (GTX 10 / RTX 20/30/40) + zero-maintenance goal — Use Path 1. Enable
contrib non-free-firmware, thenapt install nvidia-driver. DKMS fully automatic, no third-party repos. - RTX 50 / Blackwell GPUs — Must use Path 2 (NVIDIA official debian13 repo) and explicitly install
nvidia-kernel-open-dkms. Archive repo lacks the branch;.runlacks DKMS protection. - Mixed-repo environments (previously added NVIDIA repo, now reverting to archive) — First
apt purge 'nvidia-*' 'libnvidia-*', delete/etc/apt/sources.list.d/nvidia.list, thenapt updateand reinstall via Path 1. Otherwiseapt-cache policyshows mixed sources, causing version tear. - CUDA development / containerized deployment — Pair NVIDIA official repo with
cuda-toolkit-12-xmetapackage to lock driver and CUDA runtime versions. For container GPU passthrough only, install driver on host; containers usenvidia/cudaimages with bundled runtime. - Custom-compiled or rolled-back kernels — DKMS manages only kernels installed via package manager. For manually built or non-Debian kernels, manually run
dkms installfor the target kernel version, or fall back to.runinstaller (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
- FOSS Linux: How to Install NVIDIA Drivers on Debian (2026-11-26)
Spotted outdated pricing, stock, or expired coupons?See methodology & report an update →

