4

This question already has an answer here:

I am new to Debian and I want to install the nvidia cuda toolkit, so I typed:

apt install nvidia-cuda-toolkit

but it did not work, I found out I need to add a source in /etc/apt/sources.list which contains this cuda package.

However, as for now there are only a few lines in /etc/apt/sources.list referring to a university, which I chose during installation.

I do not know how to find out which source I need to add.

Is there a debian database, where I can submit the program I need and which in turn gives me a list of sources containing it?

marked as duplicate by Jeff Schaller, Romeo Ninov, jimmij, Rui F Ribeiro, roaima Jul 24 '17 at 21:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

6

The nvidia-cuda-toolkit package is a non-free software , edit your /etc/apt/sources.list by adding the non-free component :

apt edit-sources

Then edit your sources , there is an example:

deb http://deb.debian.org/debian stretch main contrib non-free

save and run:

apt update
apt install nvidia-cuda-toolkit 

Component

main consists of DFSG-compliant packages, which do not rely on software outside this area to operate. These are the only packages considered part of the Debian distribution.

contrib packages contain DFSG-compliant software, but have dependencies not in main (possibly packaged for Debian in non-free).

non-free contains software that does not comply with the DFSG.

  • 1
    thank you very much, could anybody comment on what the "stretch main contrib non-free"-part means? – sharkant Jul 24 '17 at 18:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.