[Boot/Shutdown] 更新后就黑屏了
Tofloor
poster avatar
Ming
deepin
2025-04-23 21:49
Author

如图 设备dell latitude 5400

Reply Favorite View the author
All Replies
JohnWoo
deepin
2025-04-24 08:59
#1

这个问题最近论坛里很多人都遇到了,我也是把25安装在笔记本上,然后更新后就出现这些提示了。这是上次我出现这个问题时得到的建议

”1.建议在升级的过程中,看一下/var/log/apt/term.log的输出内容,是否有报错,如有可以贴一下。

2.问题出现后,尝试使用命令行重新安装内核(sudo apt reinstall linux-image...),没报错的情况重启电脑,选择此内核再看看是否能进入,有报错也贴一下,方便我们分析

3.尝试复现问题时,记录操作时间点,问题出现后,使用sudo journalctl 命令操作时间点之后的日志贴一下,方便我们分析具体是哪个系统服务异常导致systemd进去紧急模式的。“

Reply View the author
jjcui8595
deepin
Resources Team Moderator
2025-04-24 10:01
#2

请参考置顶帖

https://bbs.deepin.org/post/286371

Reply View the author
deepin-流云
Moderator
2025-04-24 10:05
#3

尝试下在启动界面按方向键选到高级选项,里面有个6.6.7的低版本内核,选这个降级下内核应该就可以进入系统了。
image.png

Reply View the author
HualetWang
deepin
2025-04-24 14:33
#4

更新后黑屏在启动界面选择一个其他备份点进去试试。

Reply View the author
Ming
deepin
2025-04-24 15:40
#5
deepin-流云

尝试下在启动界面按方向键选到高级选项,里面有个6.6.7的低版本内核,选这个降级下内核应该就可以进入系统了。
image.png

我这里最低的都6.12.9 了

Reply View the author
deepin-流云
Moderator
2025-04-24 15:48
#6
Ming

我这里最低的都6.12.9 了

另外一个是6.12.20吗,选6.12.9能正常进入系统吗?或者选上个备份看看能不能进

Reply View the author
Ming
deepin
2025-04-24 16:09
#7
JohnWoo

这个问题最近论坛里很多人都遇到了,我也是把25安装在笔记本上,然后更新后就出现这些提示了。这是上次我出现这个问题时得到的建议

”1.建议在升级的过程中,看一下/var/log/apt/term.log的输出内容,是否有报错,如有可以贴一下。

2.问题出现后,尝试使用命令行重新安装内核(sudo apt reinstall linux-image...),没报错的情况重启电脑,选择此内核再看看是否能进入,有报错也贴一下,方便我们分析

3.尝试复现问题时,记录操作时间点,问题出现后,使用sudo journalctl 命令操作时间点之后的日志贴一下,方便我们分析具体是哪个系统服务异常导致systemd进去紧急模式的。“

1./var/log/apt/term.log
Log started: 2025-04-23 17:37:06
(Reading database ... 334466 files and directories currently installed.)
Removing u.utools.utools (4.4.1) ...
Processing triggers for libc-bin (2.38-6deepin13+rb1) ...
Processing triggers for deepin-app-store (8.0.8.1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Log ended: 2025-04-23 17:37:20

  1. 日志太多了,挑了点可疑的,看是否对你有帮助
    4月 24 16:03:00 ming-PC systemd[1]: lastoreAutoUpdateToken.timer: Deactivated successfully.
    ░░ Subject: Unit succeeded
    ░░ Defined-By: systemd
    ░░ Support: https://www.debian.org/support
    ░░
    ░░ The unit lastoreAutoUpdateToken.timer has successfully entered the 'dead' state.
    4月 24 16:03:00 ming-PC kernel: EXT4-fs (nvme0n1p4): re-mounted 031c3854-3169-4076-bc0f-466cdcc363b9 r/w. Quota mode: none.
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:109: failed to get SN: The name com.deepin.license was not provided by any .service files
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:113: failed to get oemId by /etc/oem-info :oemInfoFile or oemSignFile not exist, start get oemId >
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:118: open /etc/.oemid: no such file or directory
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:130: failed to get project id: open /usr/share/deepin/custom-note/info.json: no such file or dire>
    4月 24 16:03:11 ming-PC systemd[1]: dev-tpm0.device: Job dev-tpm0.device/start timed out.
    4月 24 16:03:11 ming-PC systemd[1]: Timed out waiting for device dev-tpm0.device - /dev/tpm0.
    ░░ Subject: dev-tpm0.device 单元已失败
    ░░ Defined-By: systemd
    ░░ Support: https://www.debian.org/support
    ░░
    ░░ dev-tpm0.device 单元已失败。
    ░░
    ░░ 结果为“timeout”。
    4月 24 16:03:11 ming-PC systemd[1]: Dependency failed for tpm2-abrmd.service - TPM2 Access Broker and Resource Management Daemon.
    ░░ Subject: tpm2-abrmd.service 单元已失败
    ░░ Defined-By: systemd
    ░░ Support: https://www.debian.org/support
    ░░
    ░░ tpm2-abrmd.service 单元已失败。
    ░░
    ░░ 结果为“dependency”。
    4月 24 16:03:11 ming-PC systemd[1]: tpm2-abrmd.service: Job tpm2-abrmd.service/start failed with result 'dependency'.
    4月 24 16:03:11 ming-PC systemd[1]: dev-tpm0.device: Job dev-tpm0.device/start failed with result 'timeout'.
    4月 24 16:03:11 ming-PC systemd[1]: Reached target multi-user.target - Multi-User System.
Reply View the author
Ming
deepin
2025-04-24 16:11
#8
deepin-流云

另外一个是6.12.20吗,选6.12.9能正常进入系统吗?或者选上个备份看看能不能进

另一个是 6.12.20。

选 6.12.9 能进入系统,选上个备份点也能进入。但是把启动菜单选为上个备份点,发现重启后,还是跑第一个去了(无法进入),只能手动选上备份点

Reply View the author
朕赐你炸鸡
deepin
2025-04-24 16:59
#9
Ming

另一个是 6.12.20。

选 6.12.9 能进入系统,选上个备份点也能进入。但是把启动菜单选为上个备份点,发现重启后,还是跑第一个去了(无法进入),只能手动选上备份点

我理解是有两个问题

1.当前系统第一个引导项,内核对应的是6.12.20,这个是无法进入系统的

2.控制中心的引导项设置选择了第二个,重启后grub界面还是默认选择第一个

是这样吗

Reply View the author
deepin-流云
Moderator
2025-04-24 17:06
#10
Ming

1./var/log/apt/term.log
Log started: 2025-04-23 17:37:06
(Reading database ... 334466 files and directories currently installed.)
Removing u.utools.utools (4.4.1) ...
Processing triggers for libc-bin (2.38-6deepin13+rb1) ...
Processing triggers for deepin-app-store (8.0.8.1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Log ended: 2025-04-23 17:37:20

  1. 日志太多了,挑了点可疑的,看是否对你有帮助
    4月 24 16:03:00 ming-PC systemd[1]: lastoreAutoUpdateToken.timer: Deactivated successfully.
    ░░ Subject: Unit succeeded
    ░░ Defined-By: systemd
    ░░ Support: https://www.debian.org/support
    ░░
    ░░ The unit lastoreAutoUpdateToken.timer has successfully entered the 'dead' state.
    4月 24 16:03:00 ming-PC kernel: EXT4-fs (nvme0n1p4): re-mounted 031c3854-3169-4076-bc0f-466cdcc363b9 r/w. Quota mode: none.
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:109: failed to get SN: The name com.deepin.license was not provided by any .service files
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:113: failed to get oemId by /etc/oem-info :oemInfoFile or oemSignFile not exist, start get oemId >
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:118: open /etc/.oemid: no such file or directory
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:130: failed to get project id: open /usr/share/deepin/custom-note/info.json: no such file or dire>
    4月 24 16:03:11 ming-PC systemd[1]: dev-tpm0.device: Job dev-tpm0.device/start timed out.
    4月 24 16:03:11 ming-PC systemd[1]: Timed out waiting for device dev-tpm0.device - /dev/tpm0.
    ░░ Subject: dev-tpm0.device 单元已失败
    ░░ Defined-By: systemd
    ░░ Support: https://www.debian.org/support
    ░░
    ░░ dev-tpm0.device 单元已失败。
    ░░
    ░░ 结果为“timeout”。
    4月 24 16:03:11 ming-PC systemd[1]: Dependency failed for tpm2-abrmd.service - TPM2 Access Broker and Resource Management Daemon.
    ░░ Subject: tpm2-abrmd.service 单元已失败
    ░░ Defined-By: systemd
    ░░ Support: https://www.debian.org/support
    ░░
    ░░ tpm2-abrmd.service 单元已失败。
    ░░
    ░░ 结果为“dependency”。
    4月 24 16:03:11 ming-PC systemd[1]: tpm2-abrmd.service: Job tpm2-abrmd.service/start failed with result 'dependency'.
    4月 24 16:03:11 ming-PC systemd[1]: dev-tpm0.device: Job dev-tpm0.device/start failed with result 'timeout'.
    4月 24 16:03:11 ming-PC systemd[1]: Reached target multi-user.target - Multi-User System.

请问这个日志还在么?能不能帮提供下升级时完整的/var/log/apt/term.log 文件么,研发需要定位分析下,谢谢。

Reply View the author
朕赐你炸鸡
deepin
2025-04-24 17:13
#11
Ming

1./var/log/apt/term.log
Log started: 2025-04-23 17:37:06
(Reading database ... 334466 files and directories currently installed.)
Removing u.utools.utools (4.4.1) ...
Processing triggers for libc-bin (2.38-6deepin13+rb1) ...
Processing triggers for deepin-app-store (8.0.8.1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Log ended: 2025-04-23 17:37:20

  1. 日志太多了,挑了点可疑的,看是否对你有帮助
    4月 24 16:03:00 ming-PC systemd[1]: lastoreAutoUpdateToken.timer: Deactivated successfully.
    ░░ Subject: Unit succeeded
    ░░ Defined-By: systemd
    ░░ Support: https://www.debian.org/support
    ░░
    ░░ The unit lastoreAutoUpdateToken.timer has successfully entered the 'dead' state.
    4月 24 16:03:00 ming-PC kernel: EXT4-fs (nvme0n1p4): re-mounted 031c3854-3169-4076-bc0f-466cdcc363b9 r/w. Quota mode: none.
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:109: failed to get SN: The name com.deepin.license was not provided by any .service files
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:113: failed to get oemId by /etc/oem-info :oemInfoFile or oemSignFile not exist, start get oemId >
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:118: open /etc/.oemid: no such file or directory
    4月 24 16:03:00 ming-PC lastore/messageReport[879]: systeminfo_utils.go:130: failed to get project id: open /usr/share/deepin/custom-note/info.json: no such file or dire>
    4月 24 16:03:11 ming-PC systemd[1]: dev-tpm0.device: Job dev-tpm0.device/start timed out.
    4月 24 16:03:11 ming-PC systemd[1]: Timed out waiting for device dev-tpm0.device - /dev/tpm0.
    ░░ Subject: dev-tpm0.device 单元已失败
    ░░ Defined-By: systemd
    ░░ Support: https://www.debian.org/support
    ░░
    ░░ dev-tpm0.device 单元已失败。
    ░░
    ░░ 结果为“timeout”。
    4月 24 16:03:11 ming-PC systemd[1]: Dependency failed for tpm2-abrmd.service - TPM2 Access Broker and Resource Management Daemon.
    ░░ Subject: tpm2-abrmd.service 单元已失败
    ░░ Defined-By: systemd
    ░░ Support: https://www.debian.org/support
    ░░
    ░░ tpm2-abrmd.service 单元已失败。
    ░░
    ░░ 结果为“dependency”。
    4月 24 16:03:11 ming-PC systemd[1]: tpm2-abrmd.service: Job tpm2-abrmd.service/start failed with result 'dependency'.
    4月 24 16:03:11 ming-PC systemd[1]: dev-tpm0.device: Job dev-tpm0.device/start failed with result 'timeout'.
    4月 24 16:03:11 ming-PC systemd[1]: Reached target multi-user.target - Multi-User System.

1.日志的时间不太对,可以先记录系统当前大概时间点,然后重启,到进不去系统的那个引导项启动,这时候系统是无法启动的,但会生成对应的日志,之后重启系统,在grub界面按e编辑引导项,在linux的哪一行最后面添加 init=/bin/bash字段,然后按F10,系统会加载引导,此时默认会进去bash界面(如果没看到,回车一下就可以看到了),

2.此时执行journalctl命令,找一下上面记录的大概时间点,把这个时间点之后的日志最好能传上来,或者自行看一下日志中有没有明显标红的错误,贴出来,这有助于分析为何系统启动了,但是进去了紧急模式的原因

3.判断是否是内核版本和引导项中挂载的文件系统不一致导致的,先重复步骤“重启,到进不去系统的那个引导项启动,这时候系统是无法启动的,但会生成对应的日志,之后重启系统,在grub界面按e编辑引导项,在linux的哪一行最后面添加 init=/bin/bash字段,然后按F10,系统会加载引导,此时默认会进去bash界面(如果没看到,回车一下就可以看到了)”

之后cat /proc/cmdline 找到ostree=这一行参数,这实际是一个目录,在/persistent目录下按照这个路径去找到这个目录,进去这个目录后,继续查看里面的usr/lib/modules目录,看下其中有几个文件夹,再对照cat /proc/cmdline的结果,还cmdline中内核是都在当前目录中有对应文件夹,不确定的话可以把上面每一步操作拍照发一下

Reply View the author
Ming
deepin
2025-04-25 08:28
#12
朕赐你炸鸡

我理解是有两个问题

1.当前系统第一个引导项,内核对应的是6.12.20,这个是无法进入系统的

2.控制中心的引导项设置选择了第二个,重启后grub界面还是默认选择第一个

是这样吗

理解满分

Reply View the author
Ming
deepin
2025-04-25 08:38
#13
deepin-流云

请问这个日志还在么?能不能帮提供下升级时完整的/var/log/apt/term.log 文件么,研发需要定位分析下,谢谢。

提供个邮箱,给你发过去

Reply View the author
qiye
deepin
2025-04-25 08:55
#14
deepin-流云

尝试下在启动界面按方向键选到高级选项,里面有个6.6.7的低版本内核,选这个降级下内核应该就可以进入系统了。
image.png

能不能和开发说一下,这个页面的字体调小一点,我的电脑上这个界面只显示前面几个字符,后面的都看不清。

Reply View the author
deepin-流云
Moderator
2025-04-25 10:33
#15
Ming

提供个邮箱,给你发过去

感谢您的帮助和支持,发到深度官方的支持邮箱即可:support@deepin.org

Reply View the author
deepin-流云
Moderator
2025-04-25 10:34
#16
qiye

能不能和开发说一下,这个页面的字体调小一点,我的电脑上这个界面只显示前面几个字符,后面的都看不清。

嗯嗯,确实有些机器上会存在这样的问题,已经有bug单在跟踪解决中

Reply View the author