Ubuntu: How to install Nvidia -375.39 drivers in Ubuntu 14.04..Error displayed as “X server currently running”


HP laptop
Ubuntu 14.04 (64 bit) Geforce 830M Nvidia Driver -375.39(Latest Checked in Nvidia Site)

My requirements:

  1. I have to install Nvidia Latest drivers suppoeted for my system(375.39)
  2. After that I have to install cuda 8.0 (Latest)
  3. Then, I have to install GPU version Tensorflow

I tried installing Nvidia-375.39 by downloading running it as root. I got the error as "X server is currently running..Stop it and so on..." I have completely zero knowledge on X server..."Using: nvidia-installer ncurses user interface -> Detected 4 CPUs online; setting concurrency level to 4. -> The file '/tmp/.X0-lock' exists and appears to contain the process ID '16666' of a runnning X server. ERROR: You appear to be running an X server; please exit X before installing." Can some one help me on this


You need to stop lightdm to install Nvidia drivers.

sudo service lightdm stop  

But this will stop the whole desktop. So do the following steps.

  1. Press Ctrl+Alt+F1 to go to non-GUI mode. Enter your username and password.

  2. Stop lightdm with the above command.

  3. Now you can install Nvidia drivers and install CUDA.

  4. Once you finished installing it. Restart your computer

    shutdown now  
  5. Now turn on your computer like you normally do.

You will be back with GUI.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »