3

I am working on workstation with CPU core I7 4790 and two GPUs GTX 760 4 GB ram/1152 core the system's memory is 16 GB RAM I have Ubuntu 14.04.1 LTS after many tries and reinstalling Ubuntu many times finally i have correctly installed nvidia driver 340.46 using 3 shell commands ppa xorg-edgers

now i want to install Cuda 6.5 toolkit
but in the manual they say that the cuda toolkit installer will also install nvidia Graphics driver

how to prevent the installer from reinstall the graphics driver how to install cuda 6.5 toolkit without reinstalling my graphics driver because i faced many problems until i installed 340.46 correctly

and after successfully installing cuda toolkit 6.5 how to upgrade my graphics driver without disturbing cuda toolkit and reinstall everything from the beginning

1 Answer 1

3

Install aptitude

sudo apt-get install aptitude

and then run

aptitude

Click on Search type nvidia, use the arrow keys to go to nvidia-340.46 and click on Package and then Hold.

(and then still take a full system backup before installing CUDA; I use CloneZilla as a system backup: just take the / partition and leave the /home partition out! Works like a charm!)

Also, now you have aptitude, so even if things go wrong, you can still log into the console (Ctrl+Alt+F1) and use aptitude to delete whatever CUDA installed....

9
  • i have installed nvidia 340.58 graphics driver and then i have installed cuda toolkit 6.5 from cuda repo .deb package and everything worked well i performed post installation steps and i run nvcc -v command it worked will but the samples cannot be run it says my gcc is 4.9.2 and it is not supported by cuda it says 4.8.2 supported what can i do ? Dec 5, 2014 at 2:35
  • I have an NVidia card and I use Xorg.edgers too and I know what CUDA is... I have yet to write my first C-program on Linux... Still at the bash stage, next is go, then back to C. Ask me again in a year or so! ;-)
    – Fabby
    Dec 5, 2014 at 2:38
  • Hold on! I've got gcc 4.8.2... What's your uname -r?
    – Fabby
    Dec 5, 2014 at 2:39
  • uname -r 3.13.0-40-generic i have gcc 4.9.2 Dec 5, 2014 at 2:41
  • Ubuntu 14.04.1 LTS Dec 5, 2014 at 2:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .