驱动程序如何安装 NVIDIA.run?

分享于 

3分钟阅读

ubuntu

  繁體

问题

我有一个Nvidia Ge force Ge6150 SE显卡,当我尝试安装.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.




答案1

当你尝试在登录时安装Nvidia .run文件时发生这个错误。

确保你已注销。

  • 点击Ctrl+Alt+F1并使用你的凭据登录
  • 键入以下命令终止当前X服务器会话sudo service lightdm stop 或者sudo lightdm stop
  • 键入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服务器

答案2

我用这种方法安装了最新的nvidia驱动程序:


sudo add-apt-repository ppa:ubuntu-x-swat/x-updates


sudo apt-get update


sudo apt-get install nvidia-current




答案3

在终端中运行时添加--no-x-check标志:


sudo ./NVIDIAxxxx.run --no-x-check





相关文章