无法安装 NVIDIA 驱动程序,导致登录循环

无法安装 NVIDIA 驱动程序,导致登录循环

我在基于 Chromium 的浏览器中遇到了一些渲染问题,因此,我决定安装专有的 Nvidia 驱动程序。我在“软件和更新”中有两个选项:

在此处输入图片描述

当我选择这两个选项之一时,我遇到了登录循环。我必须手动将其删除并安装:

sudo apt-get purge nvidia\*
sudo apt install nvidia-304 # or nvidia-340

重启后我又进入了登录循环。内容.xsession-errors

Xlib:  extension "GLX" missing on display ":0".
openConnection: connect: No such file or directory
cannot connect to brltty at :0
upstart: gnome-session (Unity) main process (2668) terminated with status 1
upstart: unity-settings-daemon main process (2661) killed by TERM signal
upstart: logrotate main process (2391) killed by TERM signal
upstart: bamfdaemon main process (2453) killed by TERM signal
upstart: hud main process (2659) killed by TERM signal
upstart: indicator-bluetooth main process (2721) killed by TERM signal
upstart: indicator-power main process (2726) killed by TERM signal
upstart: indicator-datetime main process (2728) killed by TERM signal
upstart: indicator-keyboard main process (2729) killed by TERM signal
upstart: indicator-printers main process (2733) killed by TERM signal
upstart: indicator-session main process (2734) killed by TERM signal
upstart: Disconnected from notified D-Bus bus
upstart: unity-panel-service main process (2680) killed by TERM signal
upstart: indicator-sound main process (2730) killed by TERM signal

PS.Xauthority.ICEauthority归我的用户所有。

现在我切换到了 X.Org 驱动程序,但我想安装 Nvidia。怎么办?我的系统是 Ubuntu 16.04.5

更新: nvidia-prime包裹没有帮助

更新:访客会话不起作用

更新:上次内核更新后问题仍然存在

答案1

NVIDIA 支持帮助解决了该问题:

  1. 删除以前的驱动程序安装尝试:

    sudo apt purge nvidia-\*

  2. 将开源 nouveau 驱动程序列入黑名单

    echo "blacklist nouveau\nblacklist lbm-nouveau" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf

    sudo update-initramfs -u

  3. sudo reboot

  4. 从这里下载当前驱动程序:http://www.nvidia.com

  5. 打开终端并停止 X 服务器:

    Ctrl+ Alt+F1

    sudo service lightdm stop

  6. sudo sh <driver_name>

如果收到预安装脚本失败的消息,请选择“继续”

  1. 完成后,重新启动

相关内容