大约一个月前,我的 Arch 系统开始挂在“达到目标图形界面”状态,并且从未启动 Gnome 显示管理器(GDM)。我最终找到了一个解决方法,只需切换到 TTY 2 (ALT + F2),然后切换回 TTY 1 (ALT + F1),即可正常启动 GDM。这是卡住/挂起的启动的屏幕截图:
我看了这个问题,Arch Linux 在启动时卡住(达到目标图形界面),但我并没有为此使用 Virtualbox,尽管我在注意到该问题时确实安装了 Virtualbox,然后在故障排除步骤中卸载了 Virtualbox。我确实尝试了该问题的答案来安装 xorg-server,但它已经安装了>https://unix.stackexchange.com/a/341293/27902。
我确实启用了该服务。当我切换到 TTY2 时,显示如下systemctl status gdm.service
:
/usr/lib/systemd/system/gdm.service 的内容:
[Unit]
Description=GNOME Display Manager
# replaces the getty
[email protected]
[email protected]
# replaces plymouth-quit since it quits plymouth on its own
Conflicts=
After=
# Needs all the dependencies of the services it's replacing
# pulled from [email protected] and
# (except for plymouth-quit-wait.service since it waits until
# plymouth is quit, which we do)
After=rc-local.service plymouth-start.service systemd-user-sessions.service
# GDM takes responsibility for stopping plymouth, so if it fails
# for any reason, make sure plymouth still stops
OnFailure=plymouth-quit.service
[Service]
ExecStart=/usr/bin/gdm
KillMode=mixed
Restart=always
IgnoreSIGPIPE=no
BusName=org.gnome.DisplayManager
StandardOutput=syslog
StandardError=inherit
EnvironmentFile=-/etc/locale.conf
ExecReload=/bin/kill -SIGHUP $MAINPID
KeyringMode=shared
[Install]
Alias=display-manager.service
更新:澄清一下,我不使用 Wayland,但仍然使用 X。
答案1
K,解决方案是这样的,感谢 @cweagans 帮助我解决了这个问题!
systemctl disable gdm.service
yay --remove gdm
yay --sync --refresh gdm
systemctl enable gdm.service
reboot
- 作品!