Ubuntu 22.04只能启动到tty界面

我有一台搭载Ubuntu 22.04的机器,配备了一张旧款AMD显卡(详细信息如下)。背景是,在过去的一年半时间里,它一直运行在Linux Mint上。在硬盘损坏的困扰下,几个月前我将其切换到了Ubuntu。
最后一次正确启动是3或4天前,我记得当时我在玩游戏的同时在后台运行了一个更新。然后我关机并尝试几天后重新启动。现在我无法启动Ubuntu桌面。它只能进入一个有闪烁光标的屏幕,并且我可以通过Ctrl+Alt+F2进入TTY。我也可以通过SSH连接到它。
我查找了一些解决方案并尝试了一些方法。我尝试手动启动Xorg,但没有成功。我还尝试在grub配置中使用nomodeset以使其启动,但出现了错误。我尝试重新安装了ubuntu-desktop。我还尝试以前的内核进行引导,但似乎遇到了相同的问题。我查看了xorg日志,但只找到了上一次进入系统时的日志和我手动尝试启动时的日志。我很难找到类似的情况,而且还要在最新版本的Ubuntu上解决。我一直在尝试运行任何Ubuntu的更新,以查看是否修复了问题。
我觉得这可能是内核和GPU驱动之间的问题,但这只是我从某个地方读到的线索,新版本的内核和amdgpu驱动可能存在问题。
多年来,我一直在使用各种Linux发行版,但并不是专家。就我的知识和搜索能力而言,我已经达到了尽头。所以任何帮助都将不胜感激。我刚刚把这个安装设置成我想要的样子,并且工作得相当好,所以我真的不想重新安装,特别是因为操作系统似乎除了图形界面之外都正常运行。
机器详细信息:
OS: Ubuntu 22.04.1 LTS x86_64
Host: B450 AORUS PRO WIFI
Kernel: 5.15.0-58-generic
Packages: 2444 (dpkg), 8 (flatpak), 14 (snap)
Shell: bash 5.1.16
Resolution: 2560x1440
Terminal: /dev/pts/0
CPU: AMD Ryzen 5 2600X (12) @ 3.600GHz
GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/590
Memory: 560MiB / 15943MiB

07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev e7) (prog-if 00 [VGA controller])
        Subsystem: Micro-Star International Co., Ltd. [MSI] Radeon RX 580 Armor 4G OC [1462:3418]
        Flags: bus master, fast devsel, latency 0, IRQ 111, IOMMU group 15
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0000000 (64-bit, prefetchable) [size=2M]
        I/O ports at e000 [size=256]
        Memory at fce00000 (32-bit, non-prefetchable) [size=256K]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Legacy Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>

/var/log/Xorg.0.log:

[ 25822.811]
X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
[ 25822.812] Current Operating System: Linux chuck 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64
[ 25822.812] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-58-generic root=UUID=c1bcafb2-ca43-4924-be48-4962bf748b97 ro quiet splash vt.handoff=7
[ 25822.812] xorg-server 2:21.1.3-2ubuntu2.5 (For technical support please see http://www.ubuntu.com/support)
[ 25822.812] Current version of pixman: 0.40.0
[ 25822.812]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[ 25822.812] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 25822.812] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan 14 16:43:18 2023
[ 25822.812] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 25822.812] (==) No Layout section.  Using the first Screen section.
[ 25822.812] (==) No screen section available. Using defaults.
[ 25822.812] (**) |-->Screen "Default Screen Section" (0)
[ 25822.812] (**) |   |-->Monitor "<default monitor>"
[ 25822.812] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[ 25822.812] (==) Automatically adding devices
[ 25822.812] (==) Automatically enabling devices
[ 25822.812] (==) Automatically adding GPU devices
[ 25822.812] (==) Automatically binding GPU devices
[ 25822.812] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 25822.812] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 25822.812]    Entry deleted from font path.
[ 25822.812] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 25822.812]    Entry deleted from font path.
[ 25822.812] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 25822.812]    Entry deleted from font path.
[ 25822.812] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 25822.812]    Entry deleted from font path.
[ 25822.812] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 25822.813]    Entry deleted from font path.
[ 25822.813] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[ 25822.813] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 25822.813] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 25822.813] (II) Loader magic: 0x557e780b7020
[ 25822.813] (II) Module ABI versions:
[ 25822.813]    X.Org ANSI C Emulation: 0.4
[ 25822.813]    X.Org Video Driver: 25.2
[ 25822.813]    X.Org XInput driver : 24.4
[ 25822.813]    X.Org Server Extension : 10.0
[ 25822.813] (--) using VT number 2

[ 25822.813] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 25822.814] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 25822.814] (II) Platform probe for /sys/devices/pci0000:00/0000:00:03.1/0000:07:00.0/drm/card0
[ 25822.830] (--) PCI:*(7@0:0:0) 1002:67df:1462:3418 rev 231, Mem @ 0xe0000000/268435456, 0xf0000000/2097152, 0xfce00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x????????/131072
[ 25822.830] (II) LoadModule: "glx"
[ 25822.830] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 25822.831] (II) Module glx: vendor="X.Org Foundation"
[ 25822.831]    compiled for 1.21.1.3, module version = 1.0.0
[ 25822.831]    ABI class: X.Org Server Extension, version 10.0
[ 25822.831] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0
[ 25822.831]    loading driver: amdgpu
[ 25822.831] (==) Matched amdgpu as autoconfigured driver 0
[ 25822.831] (==) Matched ati as autoconfigured driver 1
[ 25822.831] (==) Matched modesetting as autoconfigured driver 2
[ 25822.831] (==) Matched fbdev as autoconfigured driver 3
[ 25822.831] (==) Matched vesa as autoconfigured driver 4
[ 25822.831] (==) Assigned the driver to the xf86ConfigLayout
[ 25822.831] (II) LoadModule: "amdgpu"
[ 25822.831] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[ 25822.833] (II) Module amdgpu: vendor="X.Org Foundation"
[ 25822.833]    compiled for 1.21.1.3, module version = 22.0.0
[ 25822.833]    Module class: X.Org Video Driver
[ 25822.833]    ABI class: X.Org Video Driver, version 25.2
[ 25822.833] (II) LoadModule: "ati"
[ 25822.833] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[ 25822.833] (II) Module ati: vendor="X.Org Foundation"
[ 25822.833]    compiled for 1.21.1.3, module version = 19.1.0
[ 25822.833]    Module class: X.Org Video Driver
[ 25822.833]    ABI class: X.Org Video Driver, version 25.2
[ 25822.841] (II) LoadModule: "modesetting"
[ 25822.841] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 25822.841] (II) Module modesetting: vendor="X.Org Foundation"
[ 25822.841]    compiled for 1.21.1.3, module version = 1.21.1
[ 25822.841]    Module class: X.Org Video Driver
[ 25822.841]    ABI class: X.Org Video Driver, version 25.2
[ 25822.841] (II) LoadModule: "fbdev"
[ 25822.841] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 25822.841] (II) Module fbdev: vendor="X.Org Foundation"
[ 25822.841]    compiled for 1.21.1.3, module version = 0.5.0
[ 25822.841]    Module class: X.Org Video Driver
[ 25822.841]    ABI class: X.Org Video Driver, version 25.2
[ 25822.841] (II) LoadModule: "vesa"
[ 25822.841] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 25822.841] (II) Module vesa: vendor="X.Org Foundation"
[ 25822.841]    compiled for 1.21.1.3, module version = 2.5.0
[ 25822.841]    Module class: X.Org Video Driver
[ 25822.841]    ABI class: X.Org Video Driver, version 25.2
[ 25822.841] (II) AMDGPU: Driver for AMD Radeon:
        All GPUs supported by the amdgpu kernel driver
[ 25822.841] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 25822.841] (II) FBDEV: driver for framebuffer: fbdev
[ 25822.841] (II) VESA: driver for VESA chipsets: vesa
[ 25822.868] (WW) Falling back to old probe method for modesetting
[ 25822.868] (WW) Falling back to old probe method for fbdev
[ 25822.868] (II) Loading sub module "fbdevhw"
[ 25822.868] (II) LoadModule: "fbdevhw"
[ 25822.868] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 25822.868] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 25822.868]    compiled for 1.21.1.3, module version = 0.0.2
[ 25822.868]    ABI class: X.Org Video Driver, version 25.2
[ 25822.868] (II) AMDGPU(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[ 25822.868] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
[ 25822.868] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[ 25822.868] (==) AMDGPU(0): Default visual is TrueColor
[ 25822.868] (==) AMDGPU(0): RGB weight 888
[ 25822.868] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
[ 25822.868] (--) AMDGPU(0): Chipset: "AMD Radeon RX 580 Series" (ChipID = 0x67df)
[ 25822.868] (II) Loading sub module "fb"
[ 25822.868] (II) LoadModule: "fb"
[ 25822.868] (II) Module "fb" already built-in
[ 25822.869] (II) Loading sub module "dri2"
[ 25822.869] (II) LoadModule: "dri2"
[ 25822.869] (II) Module "dri2" already built-in
[ 25822.889] (EE)
[ 25822.889] (EE) Backtrace:
[ 25822.890] (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x139) [0x557e78028719]
[ 25822.890] (EE) 1: /lib/x86_64-linux-gnu/libc.so.6 (__sigaction+0x50) [0x7f2378ae6520]
[ 25822.891] (EE) 2: ? (?+0x0) [0x7ffe44a54138]
[ 25822.891] (EE)
[ 25822.891] (EE) Segmentation fault at address 0x7ffe44a54138
[ 25822.891] (EE)
Fatal server error:
[ 25822.891] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 25822.891] (EE)
[ 25822.891] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[ 25822.891] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 25822.891] (EE)
[ 25822.926] (EE) Server terminated with error (1). Closing log file.

1值得查看日志,看看是否有其他可用的信息可以添加到您的问题中:https://ubuntu.com/tutorials/viewing-and-monitoring-log-files#1-overview - Will
谢谢,我已经提取了Xorg日志文件并将其添加到问题中。有关分段错误和服务器中止的一些信息。我记得在处理过程中稍早时对这个消息进行了一些研究,但是没有什么运气。我对显示相关的工作原理了解不够,无法仅凭错误信息来找出问题所在。 - Error-404-UserNotFound
1个回答

我成功地回到了图形用户界面。我不知道这是否是最好的解决方案,但它让我能够登录和评估。这也证实了我对它与驱动程序有关的怀疑。
我在一个关于AMD显卡驱动程序的答案上点击了一个链接,你可以直接从AMD安装它们(我猜这些可能是专有驱动程序)。我最终来到了AMD支持页面,在那里我能够选择我的显卡,然后下载一个.deb安装包进行安装。我使用scp将其复制到受影响的机器上,并使用dpkg进行安装。
在安装了.deb包之后,我运行了amdgpu-install脚本来进行实际安装。amdgpu-install文档 运行完毕后,我重新启动了计算机,登录界面出现了。所以我想现在应该可以正常工作了,问题可能与显卡驱动程序与其他东西的冲突有关。