![Ubuntu 20.04 LTS 升级至 22.04 LTS 后卡在黑屏](https://linux22.com/image/1027565/Ubuntu%2020.04%20LTS%20%E5%8D%87%E7%BA%A7%E8%87%B3%2022.04%20LTS%20%E5%90%8E%E5%8D%A1%E5%9C%A8%E9%BB%91%E5%B1%8F.png)
因此,我决定将 Ubuntu 升级到 22.04 LTS。安装/升级过程非常顺利。一切似乎都很好,直到系统提示我重新启动计算机。现在它无法启动到 Ubuntu(黑屏)。
除了 Ubuntu 之外没有安装其他任何东西(没有双启动 - 试图避免使用微软)。
我有一块技嘉 B450M DS3H 主板、一块 AMD Ryzen 7 2700x Threadripper CPU、32G RAM(金士顿 HyperX HX424C15FB2K2/16 x 2 - 主板无法以 4x16G RAM 启动)和一块 PNY GeForce GTX 1060 6B 显卡。
重新启动后,我会看到显卡和 BIOS 启动画面,然后看到一堆来自 Ubuntu 的提示,但在屏幕变黑之前我无法快速读取所有问题,然后显示器进入睡眠状态。
我看到的两个错误:
[...] mtd device must be supplied (device name is empty)
[...] mtd device must be supplied (device name is empty)
[编辑 1] 在黑屏时按下 ctrl-alt-F3 会调出 TTY,让我使用我的凭据登录。
[编辑2] 在提示符下,我输入:
:~$ inxi -Gx --display
Use of uninitialized value in concatenation (.) or string at /usr/bin/inxi line 13826.
Graphics:
Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: PNY driver: nvidia v: 515.65.01 bus-ID: 06:00.0
Display: server: X.org v:1.21.1.3 with: Xwayland v: 22.1.1 driver: X: loaded: N/A unloaded: nvidia gpu: nvidia note: X driver n/a tty: 128x48 s-res: 640x480~Hz
OpenGL: renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 v:4.6.0 NVIDIA 515.65.01 direct renderer: Yes
:~$ sudo lshw -c video
*-display
description: VGA compatible controller
product: GP106 [GeForce GTX 1060 6GB]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:06:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list from
configuration: driver=nvidia latency=0
resources: irq:51 memory:fb000000-fbffffff memory:d0000000-dfffffff memory:e0000000-efffffff ioport:e000(size=128) memory:c0000-dffff
*-graphics
product: EFI VGA
physical id: 1
logical name: /dev/fb0
compatibilities: fb
configuration: depth=32 resolution=1024,768
[编辑 3] 禁用超快速启动以使我的外围设备能够进入 GRUB。添加了 nomodeset:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
它没有改变任何事情。
注意:我必须通过断开我的 SSD 来禁用来自 BIOS 的超快速启动(我的键盘在启动期间被禁用 - 但快速启动是正确的 - 也使用旧的 PS/2 键盘)。
[编辑4]
demond@demond-B450M-DS3H:~$ startx
xauth: file /home/demond/.Xauthorithy does not exist
X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
Current Operating System: Linux demond-B450M-DS3H 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-46-generic root=UUID=15c3a740-13ef-4c8e-83c1-ef1e168eee77 ro recovery nomodeset dis_ucode_ldr
xorg-server 2:21.1.3-2ubuntu2.1 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.40.0
Before reporting problems, check http://wiki.x.org to make sure that you have 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: "/home/demond/.local/share/xorg/Xorg.1.log", Time: Tue Aug 23 17:18:27 2022
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xinit: connection to X server lost
waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
demond@demond-B450M-DS3H:~$
[编辑 5] 禁用 nouveau 图形驱动程序。清除 Nvidia 驱动程序并安装 Nvidia-driver-510 再次清除 Nvidia 驱动程序并重新安装 Nvidia-driver-515(推荐)
到目前为止,还没有任何措施可以解决这个问题。
[编辑 6] 再次清除 Nvidia 驱动程序并安装 Nvidia-driver-470,终于成功了!
结论:在我的硬件配置下,只有这些软件配置才有效:
- Ubuntu 20.04 LTS / 内核 5.4 / NVidia 驱动程序515
- Ubuntu 22.04 LTS/内核 5.15/NVidia 驱动程序470
但为什么?