How to install Nvidia driver on Debian 10 Buster Linux -

In this article you will learn how to install Nvidia driver on Debian 10 Buster from the standard Debian repository. In case that from some reason the installation of the Nvidia driver from the standard Debian repository failed or you simply with to have more up to date Nvidia driver installed this tutorial will also explain on how to install the official Nvidia driver driver directly downloaded from the website.
This is a companion discussion topic for the original entry at

Hay man
You need add contrib to sources.list and non-free

The non-free Debian repository should be all that is required to follow this tutorial. Can you provide more information on why do you think that the contrib repository is required?

thank you

Actually, just the non-free repository is not enough to install all the dependencies required for nvidia-driver, adding the contrib repository solved my case.

Adding non-free is not enough. Other commenter is correct. The nvidia-driver package has a number of dependencies on packages available in contrib that are not present in non-free.

I’m on Debian 10 and for some reason just blacklisting the nouveau driver through the conf file wasn’t enough. I also had to run “update-initramfs -u” for it to actually blacklist it. Never experienced that on Debian 9.x. I wonder what changed?