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


nvidia – 升级到 17.10 后,我只得到黑屏。我该如何解决?

, ,

问题描述

我使用升级管理器从 17.04 升级到 17.10。当我启动机器时,我现在只看到黑色闪烁的屏幕。我在升级之前使用的是 nvidia 二进制驱动程序。

NOTE: This question (and answer) relate to a specific issue when upgrading from 17.04 to 17.10 while using Nvidia or AMD binary drivers. You might experience a completely different issue. For that please see the more general question My computer boots to a black screen, what options do I have to fix it?.

最佳方案

这发生在 NVidia 或 AMD 二进制驱动程序 ( Bug #1705369 ) 的几个用户身上。您需要 re-install 驱动程序:

  1. CTRL + ALT + F2 切换到不同的终端 (TTY) 并使用您的用户登录。

  2. 通过运行 sudo apt-get purge ^nvidia 删除二进制驱动程序。 AMD 用户可以运行 amdgpu-pro-uninstall 来删除 AMD 图形堆栈。

  3. 如果 /etc/X11/xorg.conf 存在,重命名(例如 sudo mv /etc/X11/xorg.conf{,.bak} )。

  4. 完全禁用 Wayland:编辑 /etc/gdm3/custom.conf 并取消注释以下行 # WaylandEnable=false

  5. 使用 sudo shutdown -r now 重新启动 Ubuntu,您应该会看到登录屏幕。

您现在可以手动(参见 How do I install the Nvidia drivers )或使用软件属性 GUI 再次安装二进制驱动程序。 AMD 用户应参考 official installation guide 的说明。

重新启动后,一切都应该按预期工作。

Note: The new Wayland display server doesn’t work with binary drivers, yet, which is why we disabled it in step 4. In the future, when Wayland is fully supported by the binary drivers, you should comment this line again.

参考资料

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