当前位置: 首页>>技术教程>>正文


如何安装NVIDIA.run?

, , , ,

问题描述

我有一个Nvidia Ge force Ge6150 SE显卡。我运行Ubuntu 12.04。当我尝试安装.run文件时失败。它显示这样的消息:

drivers,nvidia,graphics,software-installation,ubuntu

我试图在卸载旧驱动程序之后安装它。同样的消息。这里是日志文件。

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文件时,会发生此错误。

确保您已注销。

  1. 点击Ctrl + Alt + F1并使用您的凭证登录。

  2. 通过键入sudo service lightdm stopsudo lightdm stop来终止当前的X服务器会话

  3. 输入sudo init 3输入运行级别3

  4. 安装*.run文件。

    1. 您可以通过键入例如cd Downloads来切换到您下载文件的目录。如果它在另一个目录中,那就去那里。检查在键入ls NVIDIA*时是否看到该文件

    2. 使用chmod +x ./your-nvidia-file.run可执行文件

    3. sudo ./your-nvidia-file.run执行该文件

  5. 安装完成后可能需要重新启动。如果没有,运行sudo service lightdm startsudo start lightdm以再次启动您的X服务器。

  6. 值得一提的是,当以这种方式安装时,每次内核更新后都必须重做这些步骤。

次佳解决方法

我通过这种方法安装了最新的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

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/504.html,未经允许,请勿转载。