[Seek Help] 启动经常需要手动启动lightdm才能进入图形化界面
Tofloor
poster avatar
reeingal
deepin
2023-02-05 08:35
Author

最近发现我的deepin操作系统启动后有时候不能自动进入图形化界面,而是在命令行界面,频率大概是10次有2到4次会出现这种情况。命令行界面有类似下面的文本输出:

[  OK  ] Started Virtualization daemon.
[  OK  ] Finished Hold until boot process finishes up.
[FAILED] Failed to start LSB: IP conflict detection daemon.
[    6.562669] vfs_monitor: on_do_mount_ent type is empty or too long
[    6.562860] vfs_monitor: on_do_mount_ent type is empty or too long
[    6.748030] vfs_monitor: on_do_mount_ent type is empty or too long
[    6.748177] vfs_monitor: on_do_mount_ent type is empty or too long
[   17.515663] vfs_monitor: on_do_mount_ent type is empty or too long
[   17.515865] vfs_monitor: on_do_mount_ent type is empty or too long
[   28.287683] vfs_monitor: on_do_mount_ent type is empty or too long
[   28.287096] vfs_monitor: on_do_mount_ent type is empty or too long

最后类似vfs_monitor: on_do_mount_ent type is empty or too long的语句会隔几秒就输出一次。

但是可以通过Ctrl+Alt+F2切换到其它命令行终端,登录后运行

sudo systemctl start lightdm

来手动启动Deepin的图形化程序服务。

目前我是设置了一个开机后自动检测和启动lightdm服务的方法来临时解决。原理是在系统启动大概10秒后,检测是否有lightdm进程,如果没有,则运行systemctl start lightdm命令。如果有遇到类似我这种情况的用户可以临时解决一下:

切换到root用户,运行crontab -e编辑计划任务,新建一行,输入:

@reboot sleep 10 && ! (ps -ef | grep lightdm | grep -v grep) && /bin/systemctl start lightdm

目前没有头绪为什么会出现这种情况。

Reply Favorite View the author
All Replies
fax928
deepin
Q&A Team
2023-02-05 09:10
#1

试试:sudo apt --fix-broken install(修复一下)

换个显示管理器?

下下策考虑重装系统。。。

Reply View the author
fax928
deepin
Q&A Team
2023-02-05 09:30
#2

我这边用虚拟机打命令: sudo apt purge lightdm(完全卸载lightdm)(思路是重装一下lightdm),命令执行完后黑屏,然后虚拟机重启这个系统,是能正常进入桌面的,保险点的话你先备份一下重要资料再操作,祝你修复此问题。

Reply View the author
zxm860901
deepin
2023-12-29 18:52
#3

按楼上的方式处理了,正常启动了,感谢

sudo apt purge lightdm

卸载完后立马安装

sudo atp install lightdm

Reply View the author