I have a computer with debian 9 stretch and I need to install cuda.
video card: NVIDIA GTS450
GCC: gcc (Debian 6.3.0-18 + deb9u1) 6.3.0 20170516
I would like to know if anyone can help me in this endeavor.
I have CUDA installed on debian 9 stretch in several computers and it is easy to do. You can use Ubuntu packages. The best way is to use CUDA packages downloaded from nvidia website and not the debian packages from debian distribution.
For a GTS450 the last version of CUDA toolkit you could install is perhaps 8.0. I used the Ubuntu package you can found on nvidia website (https://developer.nvidia.com/cuda-80-download-archive). Choose Linux- x86-64-Ubuntu-16.04. After downloading, run as root and follow instructions.
As this program install the nvidia driver, you will need to install linux-headers debian packages for your kernel and all steps have to be made in a terminal in “init 3” (no X-mode).
I will indicate the steps:
- Download NVIDIA CUDA Toolkit from nvidia website
- Install linux-headers (sudo apt-get install linux-headers-4.9.0-8-amd64)
- Go to a terminal login outside the X-system ( Ctrl+Alt+F1 for example)
- Login into your user account
- sudo init 3 (to stop X-system)
- Go to the directory containing NVIDIA CUDA Toolkit
- execute the NVIDIA CUDA Toolkit file you dowloaded. (sudo ./NVIDIA-C… ) Remember to made it executable (chmod 744 ./NVIDIA-CUDA…)
- Follow instructions.
- When you finish type “sudo init 5” and if you are lucky, you will have NVIDIA CUDA toolkit and driver installed into your system.
Let me know if you have some problems and I will try to help you.
I’m trying to install cuda on a debian 9 (Aspire E 15) with MX150 graphical board.
The only result I obtain was:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
cuda : Depends: cuda-10-1 (>= 10.1.105) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Is it possible to install cuda on this configuration?
I just found an answer here:
The official methods from nvidia does not work for me.
NVIDIA doesn’t provide any official method for CUDA installation on Debian 9 stretch.
Debian 9 stretch is not a supported environment for CUDA.
The supported environments are listed in table 1 of the linux install guide:
Update - right. Solution above which I tested just break the OS.
I switched to Fedora. Works well.
Is it possible to install it using the docker image at https://hub.docker.com/r/nvidia/cuda?
this solution worked for me, except that I had to run the installer in recovery mode