I'm working with Ubuntu 16 and Cuda toolkit 10.2.
I'm using installer file: cuda_10.2.89_440.33.01_linux.run.
I understand I need to remove something I previously installed but don't know what exactly.
Any suggestions will be appreciated.
I'm working with Ubuntu 16 and Cuda toolkit 10.2.
I'm using installer file: cuda_10.2.89_440.33.01_linux.run.
I understand I need to remove something I previously installed but don't know what exactly.
Any suggestions will be appreciated.
If you only want to install the cuda toolkit to /usr/local, please run:
If you need nvidia driver as well, you could try the answer provided by Albino Cordeiro
Warning: above will uninstall your current nvidia driver.
I managed to solve my problem. I manage a large number of identical servers and usually use a .run file (cuda_10.2.89_440.33.01_linux.run) to install the Cuda toolkit. On this one specific server, I did some experiments a while ago and forgot that I installed the previous version of Cuda differently there (using
sudo apt install
). Runningdpkg -l | grep Nvidia
and thensudo apt purge ...
did the trick.Just run into this exact problem in Ubuntu18.04. And after some search, my solution is the following:
If you are sure that your driver version matches the cuda-toolkit version you are gonna install, refer to @domainxz answer, add
--toolkit
to only install toolkit and not to care about nvidia driver. Check this link for compatibility. (Scroll down to CUDA Driver table).If you want CUDA to handle the compatibility problem for you, you need to uninstall your current drivers. Follow the instructions in the official documentation. After you entered the text screen after reboot, uninstall your previous Nvidia driver and run the cuda runfile. For Ubuntu 18.04, what I did and worked:
The official documentation is actually very detailed... Just make sure you follow each step and you should be fine.
got in rootm with
then
then