I have a Nvidia Ge force Ge6150 SE graphics card. I am running ubuntu 12.04. When I try to install the .run file it fails. It shows the message like this:
I tried to install it after uninstalling the old driver.still same message. Here is the log file:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Jun 11 05:46:17 2012
installer version: 295.53
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
nvidia-installer command line:
./nvidia-installer
Using: nvidia-installer ncurses user interface
-> The file '/tmp/.X0-lock' exists and appears to contain the process ID '1062' of a >runnning X server.
ERROR: You appear to be running an X server; please exit X before installing. For >further details, please see the section INSTALLING THE NVIDIA DRIVER in the README >available on the Linux driver download page at www.nvidia.com.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' >for details. You may find suggestions on fixing installation problems in the README >available on the Linux driver download page at www.nvidia.com.
but no such file is shown in the process manager.
As the error states, you are still running an X server. This error occurs when you try to install the Nvidia
.run
files while logged in.Make sure you are logged out.
sudo service lightdm stop
orsudo lightdm stop
sudo init 3
*.run
file.cd Downloads
. If it is in another directory, go there. Check if you see the file when you typels NVIDIA*
chmod +x ./your-nvidia-file.run
sudo ./your-nvidia-file.run
sudo service lightdm start
orsudo start lightdm
to start your X server again.I installed latest nvidia drivers by this method:
It is working fine with unity 3d. Thanks to all.
Add the
--no-x-check
flag when you run this in the terminal:I had the same problem installing the driver for an old GeForce 9800 GT in Ubuntu 14.04-2. It was the NVIDIA-Linux-x86_64-340.76.run
I switched to the the tty1 using Ctrl+Alt+F1 and also stopped the service lightdm and when running the executable got the same error .
What I did to solve the problem was navigate to the /tmp folder and erase the .X0-lock file.
You will only see it listed if you use ls -la as it is a hidden folder by default(that is why it has a dot in front of the name)
After erasing that folder and executing the NVIDIA-Linux-x86_64-340.76.run it installed just fine.
This instructions Works great under ubuntu server 12.04 with ubuntu desktop for nvidia 8400GS PCI 512MB too just need to unistall all previous versions of default versions under ubuntu like 173 etc or any other before installing or there will be conflict or crash. Follow this tread instructions + read me install info from your card model example in my case latest driver version 319.23, see link below:
http://us.download.nvidia.com/XFree86/Linux-x86/319.23/README/installdriver.html
What worked for me:
and I had to run this multiple times, until I got a message saying
Then I am sure X server is stopped.
Ubuntu 16.04 with Quadro 4000 confirmed that this method work:
Note that I don't use nvidia-current as I downloaded the run file from NVIDIA and its version is 375.66
Try this :
Press Alt+F1, then log in.
Run
sudo telinit 3
(if that doesn't work, try/sbin/telinit 3
). Check that it is changed to level 3 with runlevel that should output something like 5 3 which means that the current run level is 3 and before it was 5.In case that doesn't work, try:
In the output you would see the PID number of the process X, so you should kill it with
sudo kill -9 number
wherenumber
is the PID number of the process.I had a hangup installing the 3.19 driver today because I did not remove the existing 3.13 driver. I used:
to get rid of all existing files, then
Success. I already had DKMS installed, and the driver program asked if it should use DKMS, so no worries about kernel upgrades.
I tried all of these things and none of them worked for me, because I kept getting a Stop: Unknown instance error when I ran "sudo stop lightdm". I finally killed the x server by going into the lightdm log and finding its process number, then killing it that way:
cd /var/log/lightdm
open the .log file (you may need to use sudo to do this)
look for something in the file that says "launching process 'process number'"
sudo kill -9 'process number'
Good luck!