Each commands I type requires root privileges, so the first command I use is su.
If you want to prevent each command from being executed as administrator, just type sudo in front of each command.
- Install package extrepo with the command
apt install extrepo - Refresh its repositories with the command
extrepo update - Search for Nvidia repos in extrepo with the command
extrepo search nvidia - Enable the official repo Nvidia Cuda with the command
extrepo enable nvidia-cuda - Now you can see the new repo in the folder /etc/apt/sources.list.d/
- The repository for now is for Debian 12, but it’s fully compatible with Debian 13. At the moment I’m typing this guide, repos for Debian 13 are having only Nvidia Beta drivers, so for now is better stuck with Debian 12 repo for another while.
- Install the package
apt install build essentialandapt install linux-headers-amd64 - If you own an old GTX card install the package
apt install nvidia-drivers, otherwise if you own a newer RTX or a newer generation GTX 1650 series you need to installapt install nvidia-open. The nvidia-driver-open package is incompatible with older videocards. - Notice that this command will install lates beta drivers. For what I tested they tent to be buggy. So type
apt install nvidia-and press tab couple of times. You first need to installnvidia-pinning-5xx.xx.xxpackage, for pinning stable drivers and not the beta version. - once you installed the drivers and they successfully compiled over your dkms you can restart your system and new drivers should be correctly installed
- Notice this procedure is intended for install drivers without the secure boot active in bios settings. If you want to enable the secure boot feature you also need to import the certificate you’ll find at this address: Index of /compute/cuda/repos
That’s all folks. Enjoy your Debian stable with the latest Nvidia shiny drivers. You can actually play very decent videogames on Debian.