LightDM은 테스트 모드에서 시작하고 싶지 않습니다.

LightDM은 테스트 모드에서 시작하고 싶지 않습니다.

테스트 모드에서 실행할 때 LightDM이 시작되지 않는 문제가 있습니다 lightdm --test-mode.

디버그에서 동일한 작업을 실행한 후 결과는 다음과 같습니다.

[+0.00s] DEBUG: Logging to /home/vilsol/.cache/lightdm/log/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.14.2, UID=1000 PID=31996
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/40-lightdm-webkit-greeter.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/gnome/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/upstart/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/xdg-gnome/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Running in user mode
[+0.00s] DEBUG: Using Xephyr for X servers
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Loading properties from config section SeatDefaults
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.01s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.02s] DEBUG: User /org/freedesktop/Accounts/User1002 added
[+0.02s] DEBUG: User /org/freedesktop/Accounts/User1001 added
[+0.02s] DEBUG: Seat seat0: Creating display server of type x
[+0.02s] DEBUG: Seat seat0: Starting local X display
[+0.02s] DEBUG: DisplayServer x-1: Logging to /home/vilsol/.cache/lightdm/log/x-1.log
[+0.02s] DEBUG: DisplayServer x-1: Writing X server authority to /home/vilsol/.cache/lightdm/run/root/:1
[+0.03s] DEBUG: DisplayServer x-1: Launching X Server
[+0.03s] DEBUG: Launching process 32000: /usr/bin/Xephyr :1 -seat seat0 -auth /home/vilsol/.cache/lightdm/run/root/:1 -nolisten tcp
[+0.03s] DEBUG: DisplayServer x-1: Waiting for ready signal from X server :1
[+0.03s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.03s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.07s] DEBUG: Got signal 10 from process 32000
[+0.07s] DEBUG: DisplayServer x-1: Got signal from X server :1
[+0.07s] DEBUG: DisplayServer x-1: Connecting to XServer :1
[+0.08s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.08s] DEBUG: Session: Not setting XDG_VTNR
[+0.08s] DEBUG: Session pid=32012: Started with service 'lightdm-greeter', username 'vilsol'
[+0.08s] DEBUG: Session pid=32012: Authentication complete with return value 0: Success
[+0.08s] DEBUG: Seat seat0: Session authenticated, running command
[+0.08s] DEBUG: Session pid=32012: Not setting XDG_VTNR
[+0.08s] DEBUG: Session pid=32012: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/bin/lightdm-webkit-greeter
[+0.08s] DEBUG: Creating shared data directory /var/lib/lightdm-data/vilsol
[+0.08s] DEBUG: Session pid=32012: Logging to /home/vilsol/.cache/lightdm/log/x-1-greeter.log
[+0.20s] DEBUG: Session pid=32012: Greeter closed communication channel
[+0.20s] DEBUG: Session pid=32012: Terminated with signal 11
[+0.20s] DEBUG: Seat seat0: Session stopped
[+0.20s] DEBUG: Seat seat0: Stopping; failed to start a greeter
[+0.20s] DEBUG: Seat seat0: Stopping
[+0.20s] DEBUG: Seat seat0: Stopping display server
[+0.20s] DEBUG: Sending signal 15 to process 32000
[+0.21s] DEBUG: Process 32000 exited with return value 0
[+0.21s] DEBUG: DisplayServer x-1: X server stopped
[+0.21s] DEBUG: DisplayServer x-1: Removing X server authority /home/vilsol/.cache/lightdm/run/root/:1
[+0.21s] DEBUG: Seat seat0: Display server stopped
[+0.21s] DEBUG: Seat seat0: Stopped
[+0.21s] DEBUG: Required seat has stopped
[+0.21s] DEBUG: Stopping display manager
[+0.21s] DEBUG: Display manager stopped
[+0.21s] DEBUG: Stopping daemon
[+0.21s] DEBUG: Exiting with return value 1

실제 오류는 없지만 어떤 이유로 인사말이 시작되지 않았다고 합니다. 재부팅하면 LightDM이 제대로 표시되므로 특히 테스트 모드와 관련이 있는 것 같습니다.

답변1

질문이 꽤 오래되었으므로 아카이브의 경우 (그러나 최고의 Google 결과).

$HOME/.cache/lightdm/log/x-0.log를 보면 다음과 같은 다른 오류가 나타날 수 있습니다.

Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)

"--test-mode"로 테스트할 때 lightdm을 디스플레이 관리자로 사용해야 합니다(이것은 먼저 테스트하려는 무언가를 실행하는 일종의 직관적이지 않습니다...). 어쩌면 gdm3이나 다른 DM을 실행하고 있습니까?

관련 정보