![Ubuntu 重启后绕过登录屏幕](https://linux22.com/image/885319/Ubuntu%20%E9%87%8D%E5%90%AF%E5%90%8E%E7%BB%95%E8%BF%87%E7%99%BB%E5%BD%95%E5%B1%8F%E5%B9%95.png)
我已经使用 ubuntu 16.04 两周了。当我登录 ubuntu 时,它会绕过登录屏幕直接进入桌面,经过 5-10 秒的冻结/延迟后进入登录屏幕并要求输入密码才能继续,这应该在第一次尝试时发生。我尝试重新启动 lightdm 并进入硬终端,但 tty7 屏幕仍然没有响应。这是 /etc/lightdm/lightdm.conf 文件的内容
autologin-guest=false
autologin-user=ravish
autologin-user-timeout=0
尚未找到任何解决方案。如能提供任何帮助,我们将不胜感激!
没有 Xorg.log,但我在 apport.log 中发现了这些错误
ERROR: apport (pid 4084) Thu Aug 18 18:41:30 2016: called for pid 2813, signal 6, core limit 18446744073709551615
ERROR: apport (pid 4084) Thu Aug 18 18:41:30 2016: ignoring implausibly big core limit, treating as unlimited
ERROR: apport (pid 4084) Thu Aug 18 18:41:30 2016: executable: /usr/lib/xorg/Xorg (command line "/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch")
ERROR: apport (pid 4084) Thu Aug 18 18:41:30 2016: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 4084) Thu Aug 18 18:41:35 2016: wrote report /var/crash/_usr_lib_xorg_Xorg.0.crash
ERROR: apport (pid 4942) Thu Aug 18 18:47:19 2016: called for pid 4157, signal 6, core limit 18446744073709551615
ERROR: apport (pid 4942) Thu Aug 18 18:47:19 2016: ignoring implausibly big core limit, treating as unlimited
ERROR: apport (pid 4942) Thu Aug 18 18:47:19 2016: executable: /usr/lib/xorg/Xorg (command line "/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch")
ERROR: apport (pid 4942) Thu Aug 18 18:47:19 2016: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 4942) Thu Aug 18 18:47:19 2016: this executable already crashed 2 times, ignoring
ERROR: apport (pid 3763) Thu Aug 18 18:53:02 2016: called for pid 2795, signal 6, core limit 18446744073709551615
ERROR: apport (pid 3763) Thu Aug 18 18:53:02 2016: ignoring implausibly big core limit, treating as unlimited
ERROR: apport (pid 3763) Thu Aug 18 18:53:02 2016: executable: /usr/lib/xorg/Xorg (command line "/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch")
ERROR: apport (pid 3763) Thu Aug 18 18:53:02 2016: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 3763) Thu Aug 18 18:53:02 2016: this executable already crashed 2 times, ignoring
答案1
从 /etc/lightdm/lightdm.conf 中删除以“autologin”开头的行。这应该可以解决您的第一个问题:它不会再自动登录您。
仅供参考 - 我的 16.04 中的 lightdm.conf 如下所示:
[SeatDefaults]
greeter-show-manual-login = true
greeter-hide-users = false
allow-guest = false
下一步,查看各种日志文件,寻找再次退出的原因:
/var/log/lightdm/*.log
/var/log/Xorg.?.log