I installed Ubuntu 16.04 LTS. My computer has an integrated Intel VGA and a GPU which is Nvidia GTX 1070. As you can predict, I installed the latest Nvidia GPU driver (390.48) and CUDA 9.1 respectively. I also did vice versa. However both sequences ended up with problem. (I applied almost 10 methods from the internet, especially NVIDIA CUDA installation guide for Linux) Here are the steps that I applied:
By the way, I applied this installation sequence a few times.So, the problems that I indicated below are the result of trials. (for each trial, I always formatted the disk and reinstalled Ubuntu)
System installation failed because of nvidia driver version of 387 although I installed version of 390.
After Installation of Cuda 9.1 after installing gpu driver, driver version of 390.48 reverted to 388.11.
and so on…
Again, I reinstalled Ubuntu by formatting and deleting everything in it.
2) I installed Cuda 9.1 and GPU driver version of 390.48 respectively (vice versa of above). This time, again, during the installation of CUDA 9.1, I got the error of fail of nvidia driver installation. So, I installed Nvidia driver version of 390.48 by removing pre-installed nvidia files and things. Still I got nothing except fails.
Please give some advices or solution for this problem. I need to install GPU driver 390.48 and CUDA 9.1. By the way, I have almost tried every solution on the internet, including Nvidia Guides. Where am i doing wrong ?
Follow your first method where you got 390.48 via runfile installed and were happy with that. I assume you can repeat that step.
Then use the CUDA runfile installer to install CUDA 9.1, and answer “no” when prompted to install the driver. It will then keep your 390.48 driver intact.
Alternatively, if you are going to install using the deb installer (which is what was installing 387 driver etc.) then you could just do:
I am following your instructions. I installed GPU driver successfully. Now, I am installing CUDA via runfile (first time to me). I need your help please if possible.
According to step of 4.2 Installation in Cuda installation guide, what is “3. Reboot into text mode (runlevel 3).” As you know and recommended me to install gpu driver first, I have already installed driver. So, should i skip this step ?
I installed Nvidia GPU driver and Cuda 9.1 successfully. However, after rebootin my notebook, CUDA disappeared. I mean,
nvcc --version
gave this output:
The program ‘nvcc’ is currently not installed. You can install it by typing:
sudo apt install nvidia-cuda-toolkit
If i apply sudo apt install nvidia-cuda-toolkit , my latest GPU driver version will revert to an old version. I know because I experienced that. What can I do to avoid this problem. I just want to install CUDA and GPU driver and use them. That’s all. Nothing more.
Please explain me why and provide a pinpoint accurate solution. I am enough and too and too tired. I am not sleeping for 2 days. I installed regarding Nvidia’s Guide. And everything was okay until rebooting.
I followed it. Regarding the guide, set LD_LIBRARY_PATH variables when runfile installation method is used, right? I did not install using runfile but .deb.
I have just set
Thank you so much. I just wanted help since I am new to Linux. I got it now. I will of course learn about Linux. You are proffesional and there to help us. Thank you again.
Hello, please help me) I have successfully installed the NVidia driver that I needed. And I installed the CUDA toolkit that was required (it was a run file). But NOW, I need to install the CUDA toolkit using .deb because of dependencies with TensorRT 7.2.2. And here comes my question: In the run file of the CUDA toolkit it is possible to skip the installation of drivers, but how to do that in the case of a .deb file?
I have tried to use → sudo apt-get install cuda-toolkit
but it didn’t work.