Skip to navigation
Debian 13 Trixie Nvidia Driver Installation
10.11.25
Home Linux Commands Tools Crontab Generator SSH Config Generator Forum Resources Linux Kernel Linux From Scratch GNU Documentation Linux Jobs Free Software Foundation (FSF) About Us Debian 13 Nvidia Driver Installation 27 September 2025 by Lubos Rendek The NVIDIA GPU drivers are essential for utilizing the full capabilities of NVIDIA graphics cards on Linux systems. Whether you’re setting up a bare metal Debian installation or configuring GPU passthrough in a virtualized environment, the driver installation process remains consistent. This guide will walk you through installing the proprietary NVIDIA drivers on Debian 13 (Trixie), ensuring your graphics card is properly recognized and functional for gaming, CUDA computing, or professional workloads. In this tutorial you will learn: How to enable non-free repositories in Debian How to install NVIDIA drivers and kernel modules How to verify successful driver installation How to troubleshoot common driver issues Debian 13 Nvidia Driver Installation Debian 13 Nvidia Driver Installation Software Requirements and Linux Command Line Conventions Category Requirements, Conventions or Software Version Used System Debian 12 (Bookworm) or Debian 13 (Trixie) Software nvidia-driver 550+, DKMS, kernel headers Other NVIDIA GPU (GeForce, RTX, or Quadro series) Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command $ – requires given linux commands to be executed as a regular non-privileged user Installing NVIDIA Drivers on Debian DEBIAN 13 NVIDIA DRIVER INSTALLATION NOTE As of September 2025, unlike previous Debian versions, Debian 13 with kernel 6.12 LTS requires explicit installation of kernel headers before installing the NVIDIA driver. Simply running apt install nvidia-driver and rebooting will fail because DKMS cannot build the kernel module without the headers present. The kernel headers must be installed first with apt install linux-headers-$(uname -r), then the nvidia-driver and nvidia-kernel-dkms packages can be installed. This change from previous Debian releases is due to the newer kernel 6.12 not including headers by default and the DKMS build process not automatically pulling them as dependencies. Following the complete installation steps in this guide ensures the NVIDIA module builds correctly and loads after reboot. The NVIDIA proprietary drivers provide superior performance compared to the open-source Nouveau drivers. These drivers are distributed through Debian’s non-free repository, which must be enabled before installation. The process involves configuring package sources, installing the driver packages, and ensuring the kernel modules are properly built for your system. Enable Non-Free Repositories: First, add the non-free repositories to your APT sources to access the proprietary NVIDIA packages $ sudo sed -i 's/main/main non-free contrib/g' /etc/apt/sources.list $ sudo apt update The sed command modifies your sources.list file to include both non-free and contrib components alongside the main repository. This is necessary because NVIDIA drivers are proprietary software not included in Debian’s main repository. Enable Non-Free Repositories Enable Non-Free Repositories Install Prerequisites and Detect GPU: Install the necessary build tools, kernel headers, and the nvidia-detect utility $ sudo apt install linux-headers-$(uname -r) build-essential dkms nvidia-detect $ nvidia-detect The kernel headers matching your current kernel version are essential for building the NVIDIA kernel module. The nvidia-detect command will identify your GPU and recommend the appropriate driver version. Detect GPU Detect GPU Install NVIDIA Driver Package: Install the NVIDIA driver and ensure the kernel module is built $ sudo apt install nvidia-driver nvidia-kernel-dkms $ sudo reboot The nvidia-driver metapackage pulls in all necessary components including libraries and utilities. The nvidia-kernel-dkms package ensures the kernel module is automatically rebuilt when you update your kernel. A reboot is required to load the new driver. Install NVIDIA Driver Package Install NVIDIA Driver Package Verify Driver Installation: After rebooting, confirm the driver is loaded and functioning $ nvidia-smi The nvidia-smi utility displays detailed information about your GPU including driver version, temperature, power usage, and memory utilization. If this command shows your GPU details, the installation was successful.
https://linuxconfig.org/debian-13-nvidia-driver-installation
Reply
Anonymous
Information Epoch 1782152291
Design for visibility.
Home
Notebook
Contact us