您尚未登录。

#1 2021-12-16 20:53:20

shaoping
会员
注册时间: 2021-12-16
帖子: 10

archlinux+dde Failed to start Light Display Manager.(虚拟机)

虚拟机安装archlinux+dde,前两天因为更新了python3.10.1导致开机黑屏,今天更新了一下发现lightdm又不能启动了。

PS C:\Users\shaoping> ssh root@192.168.3.207
root@192.168.3.207's password:
Last login: Thu Dec 16 20:39:27 2021 from 192.168.3.18
[root@archlinux ~]# systemctl restart lightdm
Job for lightdm.service failed because the control process exited with error code.
See "systemctl status lightdm.service" and "journalctl -xeu lightdm.service" for details.
[root@archlinux ~]# systemctl status lightdm
× lightdm.service - Light Display Manager
     Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2021-12-16 20:42:42 UTC; 18s ago
       Docs: man:lightdm(1)
    Process: 623 ExecStart=/usr/bin/lightdm (code=exited, status=1/FAILURE)
   Main PID: 623 (code=exited, status=1/FAILURE)
        CPU: 12ms

Dec 16 20:42:42 archlinux systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Dec 16 20:42:42 archlinux systemd[1]: Stopped Light Display Manager.
Dec 16 20:42:42 archlinux systemd[1]: lightdm.service: Start request repeated too quickly.
Dec 16 20:42:42 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
Dec 16 20:42:42 archlinux systemd[1]: Failed to start Light Display Manager.
[root@archlinux ~]# journalctl -xeu lightdm.service
Dec 16 20:42:42 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/l … temd-devel
░░
░░ The unit lightdm.service has entered the 'failed' state with result 'exit-code'.
Dec 16 20:42:42 archlinux systemd[1]: Failed to start Light Display Manager.
░░ Subject: A start job for unit lightdm.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/l … temd-devel
░░
░░ A start job for unit lightdm.service has finished with a failure.
░░
░░ The job identifier is 1780 and the job result is failed.
Dec 16 20:42:42 archlinux systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/l … temd-devel
░░
░░ Automatic restarting of the unit lightdm.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 16 20:42:42 archlinux systemd[1]: Stopped Light Display Manager.
░░ Subject: A stop job for unit lightdm.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/l … temd-devel
░░
░░ A stop job for unit lightdm.service has finished.
░░
░░ The job identifier is 1849 and the job result is done.
Dec 16 20:42:42 archlinux systemd[1]: lightdm.service: Start request repeated too quickly.
Dec 16 20:42:42 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/l … temd-devel
░░
░░ The unit lightdm.service has entered the 'failed' state with result 'exit-code'.
Dec 16 20:42:42 archlinux systemd[1]: Failed to start Light Display Manager.
░░ Subject: A start job for unit lightdm.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/l … temd-devel
░░
░░ A start job for unit lightdm.service has finished with a failure.
░░
░░ The job identifier is 1849 and the job result is failed.

离线

#2 2021-12-16 21:46:21

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

去 /var/log/lightdm 下看日志。

另外贴日志的时候不要加 -x。

离线

#3 2021-12-17 14:43:27

shaoping
会员
注册时间: 2021-12-16
帖子: 10

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

依云 说:

去 /var/log/lightdm 下看日志。

另外贴日志的时候不要加 -x。


-----------------------------------------------------------------------------------------------------
感谢大佬回复,代码如下

[root@archlinux lightdm]# cat lightdm.log
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=496
[+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/60-deepin.conf


[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.01s] DEBUG: Using VT 1
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 1
[+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: XServer 0: Can't launch X server X -background none, not found in path
[+0.01s] DEBUG: XServer 0: X server stopped
[+0.01s] DEBUG: Releasing VT 1
[+0.01s] DEBUG: Seat seat0: Display server stopped
[+0.01s] DEBUG: Seat seat0: Can't create display server for greeter
[+0.01s] DEBUG: Seat seat0: Session stopped
[+0.01s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.01s] DEBUG: Seat seat0: Stopping
[+0.01s] DEBUG: Seat seat0: Stopped
[+0.01s] DEBUG: Failed to start seat: seat0

离线

#4 2021-12-17 14:56:12

shaoping
会员
注册时间: 2021-12-16
帖子: 10

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

依云 说:

去 /var/log/lightdm 下看日志。

另外贴日志的时候不要加 -x。


----------------------------------------------------------------------
不加-x

[root@archlinux lightdm]# journalctl -eu lightdm.service
Dec 17 14:09:11 archlinux systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 3.
Dec 17 14:09:11 archlinux systemd[1]: Stopped Light Display Manager.
Dec 17 14:09:11 archlinux systemd[1]: Starting Light Display Manager...
Dec 17 14:09:11 archlinux systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Dec 17 14:09:11 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
Dec 17 14:09:11 archlinux systemd[1]: Failed to start Light Display Manager.
Dec 17 14:09:11 archlinux systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 4.
Dec 17 14:09:11 archlinux systemd[1]: Stopped Light Display Manager.
Dec 17 14:09:11 archlinux systemd[1]: Starting Light Display Manager...
Dec 17 14:09:11 archlinux systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Dec 17 14:09:11 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
Dec 17 14:09:11 archlinux systemd[1]: Failed to start Light Display Manager.
Dec 17 14:09:12 archlinux systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Dec 17 14:09:12 archlinux systemd[1]: Stopped Light Display Manager.
Dec 17 14:09:12 archlinux systemd[1]: lightdm.service: Start request repeated too quickly.
Dec 17 14:09:12 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
Dec 17 14:09:12 archlinux systemd[1]: Failed to start Light Display Manager.
Dec 17 14:53:24 archlinux systemd[1]: Starting Light Display Manager...
Dec 17 14:53:25 archlinux systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Dec 17 14:53:25 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
Dec 17 14:53:25 archlinux systemd[1]: Failed to start Light Display Manager.
Dec 17 14:53:25 archlinux systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 1.
Dec 17 14:53:25 archlinux systemd[1]: Stopped Light Display Manager.
Dec 17 14:53:25 archlinux systemd[1]: Starting Light Display Manager...
Dec 17 14:53:25 archlinux systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Dec 17 14:53:25 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
Dec 17 14:53:25 archlinux systemd[1]: Failed to start Light Display Manager.
Dec 17 14:53:25 archlinux systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 2.
Dec 17 14:53:25 archlinux systemd[1]: Stopped Light Display Manager.
Dec 17 14:53:25 archlinux systemd[1]: Starting Light Display Manager...
Dec 17 14:53:25 archlinux systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Dec 17 14:53:25 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
Dec 17 14:53:25 archlinux systemd[1]: Failed to start Light Display Manager.
Dec 17 14:53:26 archlinux systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 3.
Dec 17 14:53:26 archlinux systemd[1]: Stopped Light Display Manager.
Dec 17 14:53:26 archlinux systemd[1]: Starting Light Display Manager...
Dec 17 14:53:26 archlinux systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Dec 17 14:53:26 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
Dec 17 14:53:26 archlinux systemd[1]: Failed to start Light Display Manager.
Dec 17 14:53:26 archlinux systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 4.
Dec 17 14:53:26 archlinux systemd[1]: Stopped Light Display Manager.
Dec 17 14:53:26 archlinux systemd[1]: Starting Light Display Manager...
Dec 17 14:53:26 archlinux systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Dec 17 14:53:26 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
Dec 17 14:53:26 archlinux systemd[1]: Failed to start Light Display Manager.
Dec 17 14:53:27 archlinux systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Dec 17 14:53:27 archlinux systemd[1]: Stopped Light Display Manager.
Dec 17 14:53:27 archlinux systemd[1]: lightdm.service: Start request repeated too quickly.
Dec 17 14:53:27 archlinux systemd[1]: lightdm.service: Failed with result 'exit-code'.
Dec 17 14:53:27 archlinux systemd[1]: Failed to start Light Display Manager.

离线

#5 2021-12-17 15:11:15

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

/var/log/lightdm/x-0.log 看一下

离线

#6 2021-12-17 16:37:59

shaoping
会员
注册时间: 2021-12-16
帖子: 10

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

依云 说:

/var/log/lightdm/x-0.log 看一下


-----------------------------------------------------------

[root@archlinux ~]# cat /var/log/lightdm/x-0.log
cat: /var/log/lightdm/x-0.log: No such file or directory
[root@archlinux ~]# ls /var/log/lightdm
lightdm.log  lightdm.log.old

离线

#7 2021-12-17 17:03:46

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

你不会是没装 xorg-server 吧?

离线

#8 2021-12-17 17:13:32

shaoping
会员
注册时间: 2021-12-16
帖子: 10

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

依云 说:

你不会是没装 xorg-server 吧?


-----------

哇,大佬啊:lol:

我是虚拟机装了个基础Arch,后面的桌面环境安装都是克隆基础镜像然后再安装的,结果克隆了太多次,把xorg和xorg-server都忘了装了

不过又回到之前的那个问题了,开机黑屏。了解点,但是不知道怎么构建

离线

#9 2021-12-17 17:19:13

shaoping
会员
注册时间: 2021-12-16
帖子: 10

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

依云 说:

你不会是没装 xorg-server 吧?

-------------------------------------------

执行了pacman -Syyu也没有什么变化,不知道怎么操作

[root@archlinux ~]# pacman -Syyu
:: Synchronizing package databases...
core                                        137.6 KiB   724 KiB/s 00:00 [########################################] 100%
extra                                      1572.2 KiB  9.60 MiB/s 00:00 [########################################] 100%
community                                     5.9 MiB  25.6 MiB/s 00:00 [########################################] 100%
archlinuxcn                                1959.4 KiB  5.80 MiB/s 00:00 [########################################] 100%
:: Starting full system upgrade...
there is nothing to do

离线

#10 2021-12-17 17:22:42

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

呃,没装对应的 xf86-video-xxx ?

离线

#11 2021-12-17 17:24:49

shaoping
会员
注册时间: 2021-12-16
帖子: 10

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

依云 说:

呃,没装对应的 xf86-video-xxx ?

--------------------------------------------------

我想着虚拟机不装显卡驱动应该也是可以的吧,之前都没有安装过,我尝试装一下,感谢大佬指导

离线

#12 2021-12-17 19:09:00

shaoping
会员
注册时间: 2021-12-16
帖子: 10

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

依云 说:

呃,没装对应的 xf86-video-xxx ?

--------------------------------------------

试了一会,这个xf86-video-之类的都安装了,更新了optimus-manager还是不行,老老实实用kde了,再次感谢大佬

离线

#13 2021-12-17 19:20:39

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

为什么你会想在虚拟机里装 optimus-manager??

离线

#14 2021-12-17 21:17:36

shaoping
会员
注册时间: 2021-12-16
帖子: 10

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

依云 说:

为什么你会想在虚拟机里装 optimus-manager??

---------------------------------------------

死马当活马医,实在是没办法了,都试一下。因为更新前确实是可以用的,更新完了以后就出现开机黑屏这种情况了。

离线

#15 2021-12-18 09:55:46

silkriver
会员
注册时间: 2020-07-24
帖子: 147

Re: archlinux+dde Failed to start Light Display Manager.(虚拟机)

我的机器正常更新也有同样问题,再次更新时先忽略所有的python包就好了,等下次再升级python

离线

页脚