Debian 10(buster) - gdm3은 "systemctl restart gdm3" 후에만 시작됩니다.

Debian 10(buster) - gdm3은 "systemctl restart gdm3" 후에만 시작됩니다.

현재 Debian Stretch를 새로 설치했습니다. 나는 팔로우한다데비안 테스트(버스터)로 업데이트하는 방법에 대한 지침모든 것이 순조롭게 진행되고 있습니다. 시스템을 다시 시작했는데 모든 것이 정상입니다.

다음으로 이 시스템에서 내 시스템용 4.19.5 커널을 컴파일했습니다.

$ git clone -b kernel_4.19.y git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
$ cd linux
$ cp /boot/config-`uname -r` .config
$ yes "" | make oldconfig
$ make -j64 bzImage modules
$ sudo make modules_install install
$ sudo update-grub
$ sudo reboot

커널 컴파일은 매우 순조롭게 진행되었고 커널이 부팅되었으며 모든 것이 잘 작동했습니다. 예외 gdm3: 커널 부팅 후 시작되지 않습니다.

그래서 Debian 4.18.y 커널을 다시 부팅했지만 여전히 검은 화면만 나타납니다. 4.19.5를 다시 부팅하면 이 컴퓨터의 다른 컴퓨터에서 ssh를 실행하고 systemctl restart gdm32~4초 후에 로그인 화면이 디스플레이에 나타나고 모든 것이 예상대로 작동합니다.

다시 시스템을 재부팅하십시오. 로그인 화면은 없고 검은색 화면만 있습니다. 다시 한 번, 머신에 SSH로 연결하고 재부팅하면 gdm3모든 것이 예상대로 나타납니다.

gdm3언제 시작이 실패했는지 로그를 뒤져봤습니다 .

Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) config/udev: removing GPU device /sys/devices/pci0000:40/0000:40:03.1/0000:43:00.0/drm/card0 /dev/dri/card0
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: xf86: remove device 0 /sys/devices/pci0000:40/0000:40:03.1/0000:43:00.0/drm/card0
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: failed to find screen to remove
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: dbus-daemon[1264]: [session uid=103 pid=1264] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=103 pid=1176 comm="/usr/lib/gdm3/gdm-x-session gnome-session --autost")
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: dbus-daemon[1264]: [session uid=103 pid=1264] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Nov 28 12:11:46 bamdevsrv gdm3[1102]: GdmManager: trying to register new display
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: Unable to register display with display manager
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (**) Option "fd" "25"
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) event1  - Power Button: device removed
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (**) Option "fd" "28"
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) event0  - Power Button: device removed
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (**) Option "fd" "29"
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) event16 - Cherry USB keyboard: device removed
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (**) Option "fd" "30"
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) event18 - Cherry USB keyboard System Control: device removed
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (**) Option "fd" "31"
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) event19 - Cherry USB keyboard Consumer Control: device removed
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (**) Option "fd" "32"
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) event20 - PixArt Cherry USB Optical Mouse: device removed
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) UnloadModule: "libinput"
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) systemd-logind: releasing fd for 13:84
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) UnloadModule: "libinput"
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) systemd-logind: releasing fd for 13:83
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) UnloadModule: "libinput"
Nov 28 12:11:46 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) systemd-logind: releasing fd for 13:82
Nov 28 12:11:47 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) UnloadModule: "libinput"
Nov 28 12:11:47 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) systemd-logind: releasing fd for 13:80
Nov 28 12:11:47 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) UnloadModule: "libinput"
Nov 28 12:11:47 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) systemd-logind: releasing fd for 13:64
Nov 28 12:11:47 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) UnloadModule: "libinput"
Nov 28 12:11:47 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) systemd-logind: releasing fd for 13:65
Nov 28 12:11:47 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) RADEON(0): RADEONCloseScreen
Nov 28 12:11:47 bamdevsrv /usr/lib/gdm3/gdm-x-session[1176]: (II) Server terminated successfully (0). Closing log file.
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSession: Emitting 'session-exited' signal with exit code '70'
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSession: stopping conversation gdm-launch-environment
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSessionWorkerJob: Stopping job pid:1170
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmCommon: sending signal 15 to process 1170
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmDisplay: Greeter exited: 70
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmLocalDisplayFactory: display status changed: 4
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmDisplay: finish display
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmDisplayStore: Unreffing display: 0x55da450b4350
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmDisplay: Disposing display
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmCommon: sending signal 15 to process -1176
Nov 28 12:11:47 bamdevsrv gdm3[1102]: Child process -1176 was already dead.
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSession: Closing session
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSession: Stopping all conversations
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSessionWorkerJob: Stopping job pid:1170
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmCommon: sending signal 15 to process 1170
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSessionWorkerJob: Waiting on process 1170
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmCommon: process (pid:1170) done (status:0)
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSessionWorkerJob: SessionWorkerJob died
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSession: Disposing session
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSession: Closing session
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmSession: Stopping all conversations
Nov 28 12:11:47 bamdevsrv gdm3[1102]: GdmDisplay: Finalizing display: /org/gnome/DisplayManager/Displays/94395949597520

마침내 막혔습니다 Finalizing display. 재부팅 후 로그는 거의 동일해 보이지만 계속해서 Finalizing display다른 출력이 많이 표시됩니다.

Nov 28 13:59:16 bamdevsrv gdm3[1129]: GdmSession: Disposing session
Nov 28 13:59:16 bamdevsrv gdm3[1129]: GdmSession: Closing session
Nov 28 13:59:16 bamdevsrv gdm3[1129]: GdmSession: Stopping all conversations
Nov 28 13:59:16 bamdevsrv gdm3[1129]: GdmDisplay: Finalizing display: /org/gnome/DisplayManager/Displays/93976516326224
Nov 28 14:02:49 bamdevsrv gdm3[1129]: GDM finished, cleaning up...
Nov 28 14:02:49 bamdevsrv gdm3[1129]: GdmDisplayStore: Clearing display store
Nov 28 14:02:49 bamdevsrv gdm3[2448]: Enabling debugging
Nov 28 14:02:49 bamdevsrv gdm3[2448]: Changing user:group to Debian-gdm:Debian-gdm
Nov 28 14:02:49 bamdevsrv gdm3[2448]: Successfully connected to D-Bus
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmManager: GDM starting to manage displays
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GLib: posix_spawn avoided (fd close requested)
Nov 28 14:02:49 bamdevsrv gdm3[2448]: Could not ping plymouth: Failed to execute child process “/bin/plymouth” (No such file or directory)
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmLocalDisplayFactory: enumerating seats from logind
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmLocalDisplayFactory: wayland login display for seat seat0 requested
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmLocalDisplayFactory: Adding display on seat seat0
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: id: (null)
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: seat id: (null)
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: session class: greeter
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: initial: no
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: allow timed login: yes
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: local: yes
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: session type: wayland
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: seat id: seat0
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: initial: yes
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplayStore: Adding display /org/gnome/DisplayManager/Displays/94188358636112 to store
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: Managing display: /org/gnome/DisplayManager/Displays/94188358636112
Nov 28 14:02:49 bamdevsrv gdm3[2448]: GdmDisplay: Preparing display: /org/gnome/DisplayManager/Displays/94188358636112

부팅 시에는 gdm3이 손상되지만 재부팅 후에는 손상되지 않는 이유는 무엇입니까?

편집하다: 현재 해결 방법을 실행 중입니다. 그러나 이것은 새로운 시스템 서비스만큼 보기 흉한 해킹일 뿐입니다.

[Unit]
After=gdm3.service

[Service]
ExecStartPre=/bin/sleep 15
ExecStart=/bin/systemctl restart gdm3

[Install]
WantedBy=multi-user.target

답변1

wiki.debian.orgDebianTesting에는 gdm에 대한 특정 지침이 있습니다.

apt-get --reinstall install gdm3
apt-get --reinstall install gnome
apt-get --reinstall install gnome-shell

dpkg-reconfigure gdm3

답변2

시작할 때 그놈을 시작하지 않고 비슷한 문제가 발생했습니다.

weyland로 인해 dmesg(나의 경우)는 gnome-shell에서 segfault를 표시했습니다.

"WaylandEnable=false"로 /etc/gdm3/에서 daemon.conf를 업데이트하면 segfault가 제거되고 더 이상 문제 없이 gnome이 시작됩니다(시작 시).

https://askubuntu.com/questions/1059091/gnome-shell-error-showing-in-dmesg

관련 정보