问题描述
我有一个Nvidia Ge force Ge6150 SE显卡。我运行Ubuntu 12.04。当我尝试安装.run文件时失败。它显示这样的消息:
我试图在卸载旧驱动程序之后安装它。同样的消息。这里是日志文件。
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.
但是没有这样的文件在过程管理器中显示。帮我!!
最佳解决方法
由于错误状态,您仍在运行X服务器。当您尝试在登录时安装Nvidia .run
文件时,会发生此错误。
确保您已注销。
-
点击
Ctrl
+Alt
+F1
并使用您的凭证登录。 -
通过键入
sudo service lightdm stop
或sudo lightdm stop
来终止当前的X服务器会话 -
输入
sudo init 3
输入运行级别3 -
安装
*.run
文件。-
您可以通过键入例如
cd Downloads
来切换到您下载文件的目录。如果它在另一个目录中,那就去那里。检查在键入ls NVIDIA*
时是否看到该文件 -
使用
chmod +x ./your-nvidia-file.run
可执行文件 -
用
sudo ./your-nvidia-file.run
执行该文件
-
-
安装完成后可能需要重新启动。如果没有,运行
sudo service lightdm start
或sudo start lightdm
以再次启动您的X服务器。 -
值得一提的是,当以这种方式安装时,每次内核更新后都必须重做这些步骤。
次佳解决方法
我通过这种方法安装了最新的NVIDIA驱动程序:
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current
它与团结3d运作良好。谢谢大家。
第三种解决方法
在终端中运行时添加--no-x-check
标志:
sudo ./NVIDIAxxxx.run --no-x-check
第四种方法
这个说明在ubuntu server 12.04下很好用,用于nvidia 8400GS PCI 512MB的ubuntu桌面也只是需要在安装之前卸载所有先前版本的默认版本,比如173等,或者其他任何其他版本,否则会有冲突或崩溃。按照此步骤说明+从我的案例最新驱动程序版本319.23中读取我的卡模型示例中的安装信息,请参阅下面的链接:
http://us.download.nvidia.com/XFree86/Linux-x86/319.23/README/installdriver.html