安装专有 Nvidia 驱动程序后,Ubuntu 19.10 登录循环

安装专有 Nvidia 驱动程序后,Ubuntu 19.10 登录循环

背景

安装 Nvidia 专有驱动程序 (nvidia-driver-435) 后,陷入登录循环(有关系统详细信息,请参阅下文)。输入密码并按下 Enter 后,我的桌面显示没有出现,而是将我踢回到登录屏幕,好像什么事都没发生过一样。问题是,我该如何解决这个问题,以便可以正常登录?

系统规格:

OS: Ubuntu 19.10,  Kernel: 5.3.0-19-generic
*-display                 
       description: VGA compatible controller
       product: TU104 [GeForce RTX 2080 Rev. A]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
Display Manager: Gnome Display Manager (GDM)

使固定:

请参阅下文以及此主题:

全新安装 19.10 后出现登录循环

答案1

使固定

问题出在 GDM 显示管理器和 Nvidia 驱动程序上,似乎它们即使在 19.10 中仍然无法很好地协同工作。我无法确定问题的根本原因,但对我有用的是安装 lightdm 并在启动时更改 grub 命令行。

On the login screen press:
• Ctrl + Alt + F2 to enter the terminal and log in.
• Edit /etc/default/grub. I did it with sudo <yourtexteditor> /etc/default/grub.
• Change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="nomodset".
• Update this grub edit with update grub (tyvm @jake).
sudo apt-get install lightdm
• reboot

安装后,我可以使用安装的 NVIDIA 驱动程序(nvidia-driver-435)正常登录。

参考:全新安装 19.10 后出现登录循环

相关内容