我安装了 ubuntu 20.04.2 LTS。安装后,我重新启动,一切正常。今天,当我尝试再次启动 ubuntu 时,我看到了黑屏和闪烁的光标。
运行 journalctl -xe 会产生以下结果:
Jan 17 15:01:32 Desktop gnome-keyring-daemon[1566]: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
Jan 17 15:01:32 Desktop gnome-keyring-d[1566]: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
Jan 17 15:01:32 Desktop dbus-daemon[1477]: [session uid=1000 pid=1477] Successfully activated service 'org.freedesktop.secrets'
Jan 17 15:01:32 Desktop dbus-daemon[1477]: [session uid=1000 pid=1477] Activating service name='org.gnome.keyring.SystemPrompter' requested by ':1.15' (uid=1000 pid=1566 comm="/usr/bin/gnome-keyring-daemon --start --foreground" label="unconfined")
Jan 17 15:01:32 Desktop org.gnome.keyring.SystemPrompter[1573]: Unable to init server: Could not connect: Connection refused
Jan 17 15:01:32 Desktop gcr-prompter[1573]: cannot open display:
Jan 17 15:01:32 Desktop dbus-daemon[1477]: [session uid=1000 pid=1477] Activated service 'org.gnome.keyring.SystemPrompter' failed: Process org.gnome.keyring.SystemPrompter exited with status 1
Jan 17 15:01:32 Desktop gnome-keyring-daemon[1566]: couldn't create system prompt: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.keyring.SystemPrompter exited with status 1
Jan 17 15:01:32 Desktop gnome-keyring-d[1566]: couldn't create system prompt: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.keyring.SystemPrompter exited with status 1
Jan 17 15:01:32 Desktop goa-daemon[1528]: secret_password_lookup_sync() returned NULL
Jan 17 15:01:32 Desktop goa-daemon[1528]: /org/gnome/OnlineAccounts/Accounts/account_1598527013_0: Setting AttentionNeeded to TRUE because EnsureCredentials() failed with: No credentials found in the keyring (goa-error-quark, 4)
Jan 17 15:01:42 Desktop systemd[1465]: tracker-extract.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit UNIT has successfully entered the 'dead' state.
Jan 17 15:01:56 Desktop pulseaudio[1471]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Jan 17 15:01:56 Desktop dbus-daemon[607]: [system] Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)
Jan 17 15:02:04 Desktop tracker-store[1554]: OK
Jan 17 15:02:04 Desktop systemd[1465]: tracker-store.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit UNIT has successfully entered the 'dead' state.
我在同一个论坛上找到了某人,他有完全相同的 journalctl 输出:20.04 黑屏,无桌面会话,org.gnome.keyring.systempropter 问题。但是,修复方法是删除 nvidia 驱动程序。我的笔记本电脑中只有 AMD 和 INTEL gpu,因此我无法尝试相同的修复方法。
我注意到,当我重新启动 gdm3 时,登录屏幕会弹出,一切正常。问题是,我几乎每次启动 ubuntu 时都必须重新启动 gdm3!有没有办法解决这个问题,还是 gdm3 导致了这个问题?不确定这是否相关,但可能是内核导致了这个问题?过去使用 20.04(内核为 5.4)时,我没有遇到这个问题。但一旦更新到 20.10 或 20.04.2 和内核为 5.8,就会出现这个问题。我还想指出,在 Manjaro 上使用内核 5.9 也可以正常工作。
我尝试过的:
sudo crontab -e
被输入到终端,并添加:@reboot service gdm3 --full-restart
到文件中。- 按照此:GDM3 无法在 Ubuntu 18.04 中启动我在 /etc/gdm3/custom.conf 文件中取消了 Wayland=false 的注释。
- 我已按照此 reddit 帖子回复中的所有命令等进行操作:https://www.reddit.com/r/Ubuntu/comments/b38d97/i_tried_sudo_systemctl_restart_gdm3_and_it_does/。
- 重新安装 ubuntu 并且不选择安装第三方应用程序
谢谢您的帮助! :)
编辑:问题已解决! 我能够在 ubuntu discord 上获得帮助!为了解决这个问题,我必须禁用 gdm3,并启用 lightdm。启动时,登录屏幕会有所不同。在登录按钮附近,应该有一个 ubuntu 徽标。选择徽标并选择 wayland。这为我解决了这个问题!感谢那个很棒的人 :D
答案1
我能够在 ubuntu discord 上获得帮助!为了解决这个问题,我必须禁用 gdm3,并启用 lightdm。启动时,登录屏幕会有所不同。在登录按钮附近,应该有一个 ubuntu 徽标。选择徽标并选择 wayland。这为我解决了这个问题!感谢那个很棒的人 :D