ubuntu 14.04 更新 live usb 以安装/更新 nvidia 驱动程序和/或登录循环

ubuntu 14.04 更新 live usb 以安装/更新 nvidia 驱动程序和/或登录循环

因此,我在尝试实现这一目标的过程中遇到了很多问题。

  • 硬件:

  • 处理器:至强 e5-2687w

  • GPU:gtx 980 x2 sli / nvidia n210 用于测试目的

  • 内存:32 GB gskill 1600 MHz

  • 主板:华硕豪华 x79

  • HD:三星 1tb msata ssd 带 msata - sata3 适配器该设置在 Windows 10 上运行良好,所以它不是硬件问题,除非与 Linux 不兼容,我对此表示怀疑。

我已经做过的事情。 - Bios:快速启动和安全启动

  • 将 980 换成 n210 以获取安装介质

  • 已安装

  • 更新并下载最新的 nvidia 驱动程序 (343.22)

  • 清除旧的 NVIDIA 文件

  • 关机并换回 980

  • 接收登录循环并切换到终端(Ctrl + Alt + F1)

  • 停止 lightdm 服务并安装驱动程序

  • 安装失败并出现错误:预安装包失败,是否继续?(我继续)无法构建 Nvidia 内核模块。

  • 切换到 gdm 并重新进入时没有任何登录屏幕,然后切换到终端并接收大约 3-5 秒的显示时间,然后不显示任何视频,也不从键盘获取任何数据,直到我每次按下(Ctrl + Alt + F1)慢慢重新配置回 lightdm

  • 在我的日志文件中注意到(真的不记得是什么日志)nvidia 停止的原因是:此服务器的视频驱动程序 ABI 版本为 19.0,不受此 NVIDIA 驱动程序支持。请检查 http://www.nvidia.com/进行驱动程序更新或降级至具有受支持驱动程序 ABI 的 X 服务器。

  • 所以现在我切换回可信赖的 n210 和我的安装媒体来弄清楚我正在运行 nouveau。

  • 我如何更新实时版本,以便能够安装并准备好正确的驱动程序?

答案1

因此,我开始一步一步地记录我的情况,这些是我的笔记,以防将来偶然遇到这种情况。

硬件:
CPU:xeon e5-2687w
GPU:gtx 980 x2 in sli(n210 用于测试旧版)
内存:32 GB G.Skill
主板:asus deluxe x79
电源:evga 1200 w p2 supernova

1使用 n210 安装 ubuntu

2使用 n210 更新和升级重启

3重启后检查其他驱动程序并将 nvidia 专有驱动程序设为默认

**** 注意 **** 在步骤 3 之前的每一个机会中我都将 n210 换成 980 sli 并换回来,并且步骤 4 是 980 sli 第一次起作用。

4这是登录循环开始的地方。

5我尝试使用访客帐户,结果相同,确定不是用户帐户问题,而是驱动程序问题(nvidia 驱动程序版本 340.23)

6我将 .Xauthority 设置为 .Xauthority.back 以生成一个新的,然后重新启动 lig​​htdm 服务,但登录循环仍然存在

7读取 lightdm 日志

lightdm.log:
        DEBUG: Seat: Starting local X display on VT 7
        DEBUG: DisplayServer x-1: Logging to /var/log/lightdm/x-1.log
        DEBUG: DisplayServer x-1: Writing X server authority to /var/run/lightdm/root/:1
        DEBUG: DisplayServer x-1: Launching X Server
        DEBUG: Launching process 3385: /user/bin/X -core :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt7 -novtswitch
        DEBUG: DisplayServer x-1: Waiting for ready signal from X server :1
        DEBUG: Acquired bus name org.freedesktop.Accounts
        DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
        DEBUG: Loading users from ofg.freedesktop.Accounts
        DEBUG: User /org/freedesktop/Accounts/User1000 added
x-0-greeter.log:
        DEBUG: Generating properties error for: 26
        DEBUG: Error getting properties on a new menuitem: Error getting properties for ID
        DEBUG: Generating properties error for: 18
        DEBUG: Error getting properties on a new menuitem: Error getting properties for ID
        DEBUG: background.vala:121: Render of background /usr/share/backgrounds/Forever_by_Shady_S.jpg complete
        DEBUG: User/org/freedesktop/Accounts/User1000 changed
        DEBUG: user-list.vala:1030: Adding/updating user trevor (trevor)
        DEBUG: settings-daemon.vala:209: Screensaver activated
        DEBUG: settings-daemon.vala:211: Screensaver disabled
        DEBUG: settings-daemon.vala:209: Screensaver activated
x-0.log:
        xorg-server 2:1.17.1-0ubuntu3.1~trusty1 (For technical support please see http://www.ubuntu.com/support)
        Current version of pixman: 0.30.2
            Before reporting problems, check http://wiki.x.org
            to make sure that you ve the latest version.
        Markers: (--) probed, (**) from config file, (==) default setting,
            (++) from command line, (!!) notice, (II) informational,
            (WW) warning, (EE) error, (NI) not implemented, (??) unknown,
        (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct  8 20:06:11 2015
        (==) Using system config directory "/usr/share/X11/xorg.conf.d"
        mobprobe: ERROR: could not insert 'nvidia_340': No such device
x-1.log:
            Before reporting problems, check http://wiki.x.org
            to make sure that you ve the latest version.
        Markers: (--) probed, (**) from config file, (==) default setting,
            (++) from command line, (!!) notice, (II) informational,
            (WW) warning, (EE) error, (NI) not implemented, (??) unknown,
        (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct  8 19:45:47 2015
        (==) Using system config directory "/usr/share/X11/xorg.conf.d"
        mobprobe: ERROR: could not insert 'nvidia_340': No such device
        Failed to switch from vt07 to vt01: Input/output error
        Failed to switch from vt07 to vt01: Input/output error

8发现 gtx980 和 970 无法在专有 nvidia 驱动程序和 cuda 下运行。

******注意****** Linux 内核必须与 Nvidia 内核兼容,并且 Cuda 也必须兼容

9重新安装 ubuntu

10更新升级并重启。980 仍然无法工作,切换回 n210

11从以下位置安装 modprobe 包:http://packages.ubuntu.com/trusty-backports/nvidia-modprobe (我认为这没有必要,因为我认为第 12 步已经附带了它)

12从以下位置下载最新的 cuda 包:https://developer.nvidia.com/cuda-downloads-geforce-gtx9xx

十三输入 cli 并“sudo service lightdm stop”来终止 xorg

14安装最新的 cuda 包

15最后我得到:需要重新启动系统才能继续安装。请重新启动然后再次运行安装程序。已尝试禁用 nouveau。如果重新启动后此消息仍然存在,请参阅显示驱动程序日志文件 /var/log/nvidia-installer.log 了解更多信息。
16关闭并用 980 替换 n210

17安装了两个 980 并登录,现在是时候检查环境了

18关于这台计算机的状态:llvmpipe 上的 Graphics Gallium 0.4(LLVM 3.6,256 位)

19检查其他更新:nvidia 专有驱动程序已更新至 346.96,系统当前正在使用 xorg xserver nouveau

20按照安装程序的指示再次运行安装程序

21杀死 x 环境

22安装程序在驱动程序部分失败,原因是:驱动程序安装无法找到内核源。请确保内核源包已正确安装和设置。如果您知道内核源包已正确安装和设置,则可以使用“--kernel-source-path”标志传递内核源的位置。

23重新启动 lig​​htdm 并尝试找出内核源是否存在。(大概是的)如果是的话,我将手动切换到 nvidia 驱动程序

24找不到我想要的东西,并且变得不耐烦,选择手动 nvidia 开关

二十五成功了!更新升级时间到了

资料来源:1:http //blender.stackexchange com/questions/19336/how-to-enable-cuda-on-ubunutu-14-04-for-a-gtx-970
2:https //developer.nvidia com/cuda-downloads-geforce-gtx9xx
3:http //blenderartists org/forum/showthread.php?355600-GPU-rendering-with-gtx-970-on-ubuntu
4:http //packages.ubuntu com/trusty-backports/nvidia-modprobe

希望这对某人有帮助。

相关内容