更新后,锁定并登录后我会回到登录屏幕

更新后,锁定并登录后我会回到登录屏幕

有时,运行更新后,如果我锁定屏幕,然后尝试从 lightdm 迎宾程序再次登录,它会变黑,停留一会儿,然后将我带回到登录屏幕。

Ubuntu 陷入登录循环谈论~/.Xauthority/tmp许可,但这些似乎还可以。

/var/log/lightdm/lightdm.log显示如下内容:

[+330172.81s] DEBUG: Seat seat0: Session authenticated, running command
[+330172.81s] DEBUG: Session pid=20966: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/unity-greeter
[+330172.81s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+330172.81s] DEBUG: Session pid=20966: Logging to /var/log/lightdm/x-3-greeter.log
[+330197.83s] DEBUG: Activating VT 10
[+330197.92s] DEBUG: Session pid=20966: Greeter connected version=1.16.7 resettable=false
[+330222.99s] DEBUG: Session pid=20966: Greeter start authentication for unhammer
[+330222.99s] DEBUG: Session pid=21031: Started with service 'lightdm', username 'unhammer'
[+330222.99s] DEBUG: Session pid=21031: Got 1 message(s) from PAM
[+330222.99s] DEBUG: Session pid=20966: Prompt greeter with 1 message(s)



[+330258.19s] DEBUG: Session pid=20966: Continue authentication
[+330258.22s] DEBUG: Session pid=21031: Authentication complete with return value 0: Success
[+330258.22s] DEBUG: Session pid=20966: Authenticate result for user unhammer: Success
[+330258.23s] DEBUG: Session pid=20966: User unhammer authorized
[+330258.23s] DEBUG: Session pid=20966: Greeter requests session xubuntu
[+330258.23s] DEBUG: Seat seat0: Returning to existing user session unhammer
[+330258.23s] DEBUG: Unlocking login1 session c44

[+330283.23s] WARNING: Error unlocking login1 session: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.login1': timed out
[+330283.23s] DEBUG: Activating VT 9
[+330283.36s] DEBUG: Seat seat0: Stopping greeter
[+330283.36s] DEBUG: Session pid=20966: Sending SIGTERM
[+330283.36s] DEBUG: Activating login1 session c44
[+330308.37s] WARNING: Error activating login1 session: Timeout was reached
[+330308.37s] DEBUG: Session pid=20966: Exited with return value 0
[+330308.37s] DEBUG: Seat seat0: Session stopped
[+330308.37s] DEBUG: Seat seat0: Greeter stopped, running session
[+330308.37s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session11
[+330308.37s] CRITICAL: session_real_run: assertion '!session->priv->command_run' failed
[+330308.37s] DEBUG: Activating VT 10
[+330308.52s] DEBUG: Locking login1 session c44
[+330333.52s] WARNING: Error locking login1 session: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.login1': timed out
[+330333.52s] DEBUG: Session pid=21031: Exited with return value 0

答案1

https://serverfault.com/a/742102/104546给出了另一个问题的解决方案,该解决方案也适用于此处:更新后,您可能必须运行sudo systemctl restart systemd-logind(先按 ctrl+alt+f1 才能进入普通终端),然后才能再次登录。

相关内容