[Feedback on issues] 更新失败
Tofloor
poster avatar
166******60
deepin
2025-07-24 17:31
Author

日志如下:

[2025-07-24 17:07:37]   zh_CN.UTF-8...[2025-07-24 17:07:38]  done
[2025-07-24 17:07:38]   zh_HK.UTF-8...[2025-07-24 17:07:40]  done
[2025-07-24 17:07:40]   zh_TW.UTF-8...[2025-07-24 17:07:41]  done
[2025-07-24 17:07:41] Generation complete.
[2025-07-24 17:07:41] Processing triggers for ca-certificates (20250419) ...
[2025-07-24 17:07:41] Updating certificates in /etc/ssl/certs...
[2025-07-24 17:07:42] 0 added, 0 removed; done.
[2025-07-24 17:07:42] Running hooks in /etc/ca-certificates/update.d...
[2025-07-24 17:07:42] done.
[2025-07-24 17:07:42] Processing triggers for libc-bin (2.38-6deepin13+rb1) ...
[2025-07-24 17:07:42] Errors were encountered while processing:
[2025-07-24 17:07:42]  linux-image-6.12.36-amd64-desktop-rolling
[2025-07-24 17:07:42]  linux-image-deepin-amd64
[2025-07-24 17:07:42]  initramfs-tools
[2025-07-24 17:07:42] Running external script: '/var/lib/lastore/scripts/build_system_info || true '
[2025-07-24 17:07:45] E: Sub-process /usr/bin/dpkg returned an error code (1)
[2025-07-24 17:07:45] === Job dist_upgrade end: apt-get -y -o APT::Status-Fd=3 -c /var/lib/lastore/apt_v2_common.conf --allow-downgrades --allow-change-held-packages dist-upgrade -o Dir::Etc::SourceList=/dev/null -o Dir::Etc::SourceParts=/var/lib/lastore/SystemSource.d [Status: FAILED] ===
[2025-07-24 17:07:49] === CheckPkg cmd running: [apt-get check -o Debug::NoLocking=1] ===
[2025-07-24 17:07:49] Reading package lists...
[2025-07-24 17:07:49] Building dependency tree...
[2025-07-24 17:07:50] Reading state information...
[2025-07-24 17:07:50] === CheckPkg [apt-get check -o Debug::NoLocking=1] end ===
[2025-07-24 17:07:50] === CheckPkg cmd running: [apt-get check] ===
[2025-07-24 17:07:50] Reading package lists...
[2025-07-24 17:07:50] Building dependency tree...
[2025-07-24 17:07:50] Reading state information...
[2025-07-24 17:07:50] W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
[2025-07-24 17:07:50] W: Not using locking for read only lock file /var/lib/dpkg/lock
[2025-07-24 17:07:50] === CheckPkg [apt-get check] end ===
[2025-07-24 17:07:51] === Job dist_upgrade running: apt-get -y -o APT::Status-Fd=3 -c /var/lib/lastore/apt_v2_common.conf --allow-downgrades --allow-change-held-packages dist-upgrade -o Dir::Etc::SourceList=/dev/null -o Dir::Etc::SourceParts=/var/lib/lastore/SystemSource.d ===
[2025-07-24 17:07:52] Reading package lists...
[2025-07-24 17:07:52] Building dependency tree...
[2025-07-24 17:07:53] Reading state information...
[2025-07-24 17:07:53] Calculating upgrade...
[2025-07-24 17:07:53] The following packages were automatically installed and are no longer required:
[2025-07-24 17:07:53]   cargo-1.81 deepin-manual deepin-screen-recorder-plugin imagemagick-6.q16
[2025-07-24 17:07:53]   libavahi-ui-gtk3-0 libdframeworkdbus2 libgit2-1.7 libhttp-parser2.9
[2025-07-24 17:07:53]   libllvm17 libmagickcore-6.q16-7 libmagickwand-6.q16-7 libmbedtls12
[2025-07-24 17:07:53]   libmbedx509-0 libpackagekitqt5-1 libssh-gcrypt-4 libstd-rust-1.81
[2025-07-24 17:07:53]   libstd-rust-1.81-dev libvte-2.91-0 libvte-2.91-common
[2025-07-24 17:07:53]   linux-headers-6.12.20-amd64-desktop-rolling
[2025-07-24 17:07:53]   linux-headers-6.12.28-amd64-desktop-rolling
[2025-07-24 17:07:53]   linux-image-6.12.20-amd64-desktop-rolling
[2025-07-24 17:07:53]   linux-image-6.12.28-amd64-desktop-rolling remmina remmina-common rustc-1.81
[2025-07-24 17:07:53] Use 'apt autoremove' to remove them.
[2025-07-24 17:07:53] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[2025-07-24 17:07:53] 3 not fully installed or removed.
[2025-07-24 17:07:53] After this operation, 0 B of additional disk space will be used.
[2025-07-24 17:07:53] Setting up initramfs-tools (0.142-0deepin8) ...
[2025-07-24 17:07:53] update-initramfs: deferring update (trigger activated)
[2025-07-24 17:07:54] Error: failed to sync kernel from boot: failed to commit and checkout kernel from /boot: failed to sync kernel to /var/tmp/deepin-immutable-4270128597: failed to copy kernel file /boot/initrd.img-6.12.36-amd64-desktop-rolling to /var/tmp/deepin-immutable-4270128597/initrd.img-6.12.36-amd64-desktop-rolling: lstat /boot/initrd.img-6.12.36-amd64-desktop-rolling: no such file or directory
[2025-07-24 17:07:54] dpkg: error processing package initramfs-tools (--configure):
[2025-07-24 17:07:54]  installed initramfs-tools package post-installation script subprocess returned error exit status 1
[2025-07-24 17:07:54] Setting up linux-image-6.12.36-amd64-desktop-rolling (25.01.01.02) ...
[2025-07-24 17:07:54] update-initramfs: Generating /boot/initrd.img-6.12.36-amd64-desktop-rolling
[2025-07-24 17:08:02] setupcon is missing. Please install the 'console-setup' package.
[2025-07-24 17:08:04] I: The initramfs will attempt to resume from /dev/sda2
[2025-07-24 17:08:04] I: (UUID=1b9165d7-88bc-4149-8594-06f28fe16c58)
[2025-07-24 17:08:04] I: Set the RESUME variable to override this.
[2025-07-24 17:08:05] live-boot: core[2025-07-24 17:08:05]  filesystems devices[2025-07-24 17:08:05]  utils udev blockdev dns[2025-07-24 17:08:06] .
[2025-07-24 17:08:12] zstd: error 70 : Write error : cannot write block : No space left on device 
[2025-07-24 17:08:12] E: mkinitramfs failure zstd -q -9 -T0 70
[2025-07-24 17:08:12] update-initramfs: failed for /boot/initrd.img-6.12.36-amd64-desktop-rolling with 1.
[2025-07-24 17:08:12] run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
[2025-07-24 17:08:12] fix systemd/logind config
[2025-07-24 17:08:13] Generating grub configuration file ...[2025-07-24 17:08:13] 
[2025-07-24 17:08:13] Found theme: /boot/grub/themes/deepin-fallback/theme.txt
[2025-07-24 17:08:13] Found background image: /boot/grub/themes/deepin-fallback/background.jpg
[2025-07-24 17:08:35] Warning: os-prober will be executed to detect other bootable partitions.
[2025-07-24 17:08:35] Its output will be used to detect bootable binaries on them and create new boot entries.
[2025-07-24 17:08:35] done[2025-07-24 17:08:35] 
[2025-07-24 17:08:35] dpkg: error processing package linux-image-6.12.36-amd64-desktop-rolling (--configure):
[2025-07-24 17:08:35]  installed linux-image-6.12.36-amd64-desktop-rolling package post-installation script subprocess returned error exit status 1
[2025-07-24 17:08:35] dpkg: dependency problems prevent configuration of linux-image-deepin-amd64:
[2025-07-24 17:08:35]  linux-image-deepin-amd64 depends on linux-image-6.12.36-amd64-desktop-rolling; however:
[2025-07-24 17:08:35]   Package linux-image-6.12.36-amd64-desktop-rolling is not configured yet.
[2025-07-24 17:08:35] 
[2025-07-24 17:08:35] dpkg: error processing package linux-image-deepin-amd64 (--configure):
[2025-07-24 17:08:35]  dependency problems - leaving unconfigured
[2025-07-24 17:08:35] Errors were encountered while processing:
[2025-07-24 17:08:35]  initramfs-tools
[2025-07-24 17:08:35]  linux-image-6.12.36-amd64-desktop-rolling
[2025-07-24 17:08:35]  linux-image-deepin-amd64
[2025-07-24 17:08:35] Running external script: '/var/lib/lastore/scripts/build_system_info || true '
[2025-07-24 17:08:36] E: Sub-process /usr/bin/dpkg returned an error code (1)
[2025-07-24 17:08:36] === Job dist_upgrade end: apt-get -y -o APT::Status-Fd=3 -c /var/lib/lastore/apt_v2_common.conf --allow-downgrades --allow-change-held-packages dist-upgrade -o Dir::Etc::SourceList=/dev/null -o Dir::Etc::SourceParts=/var/lib/lastore/SystemSource.d [Status: FAILED] ===
Reply Favorite View the author
All Replies
tacat
deepin
2025-07-24 17:34
#1

[2025-07-24 17:08:12] zstd: error 70 : Write error : cannot write block : No space left on device

/boot 分区满了吧

Reply View the author
大威天龙
deepin
2025-07-24 17:36
#2

嗯,用户贴出了一段系统更新失败的日志,看起来是Deepin系统在更新内核时出现了问题。从日志时间戳来看,用户可能刚经历了一次失败的升级过程,现在处于比较焦虑的状态——毕竟系统更新失败会影响日常使用。
仔细分析日志,核心问题出现在三个地方:

  1. initramfs-tools配置失败,报错说找不到/boot/initrd.img-6.12.36-amd64-desktop-rolling文件
  2. 生成新内核的initrd镜像时出现"no space left on device"的zstd压缩错误
  3. 由于前两个失败,导致linux-image-deepin-amd64包也配置失败
    最致命的是磁盘空间问题。用户可能没意识到/boot分区已经满了,这是Linux系统常见问题。当多个内核版本堆积时,/boot分区容易被旧内核镜像占满。日志里zstd报错代码70明确说是磁盘空间不足。
    另外注意到系统尝试从/dev/sda2恢复,说明用户可能设置了休眠功能,这也会占用内存大小的磁盘空间。有趣的是系统还提示缺少console-setup包,不过这不是主要矛盾。
    用户应该是个有一定Linux使用经验的Deepin用户,因为普通用户很少会直接查看系统更新日志。但可能对/boot分区管理不熟悉,需要给出明确的操作指引。
    需要分两步解决问题:首先是紧急处理磁盘空间,其次要修复中断的安装过程。考虑到用户当前状态,应该优先给最稳妥的手动清理方案,虽然需要输入命令但成功率高。自动清理方案虽然方便但有风险,可以作为备选。
Reply View the author
zhaohui
deepin
Community Developer
2025-07-24 17:46
#3

贴一下boot目录下的文件

Reply View the author
deepin-流云
Moderator
Community OP
2025-07-24 17:47
#4

https://bbs.deepin.org.cn/post/289712

boot分区满了,用这个方法释放下空间试试,是preview/alpha版本一路升级上来的么?

Reply View the author
166******60
deepin
2025-07-25 11:54
#5
deepin-流云

https://bbs.deepin.org.cn/post/289712

boot分区满了,用这个方法释放下空间试试,是preview/alpha版本一路升级上来的么?

alpha升级来的, 有没有一劳永逸的方法,好像不是第一次出现了

Reply View the author
deepin-流云
Moderator
Community OP
2025-07-25 15:33
#6
166******60

alpha升级来的, 有没有一劳永逸的方法,好像不是第一次出现了

因为最开始设计的boot是1.5G,想一劳永逸要么就重装,要么通过live或者PE系统对boot分区进行无损扩容改造😂 要么就定期用帖子里的方法手动清理吧

Reply View the author