[Test feedback] 台式机,升级25.08后的一个小更新更新不了。
Tofloor
poster avatar
buyike
deepin
2025-09-29 21:21
Author

升级成25.08后,发现有个小更新,使用终端和控制中心均无数完成更新,尝试过多次。
image.png

Reply Favorite View the author
All Replies
buyike
deepin
2025-09-29 21:21
#1

confused

Reply View the author
米饭虚拟机
deepin
2025-09-29 22:20
#2

试试命令行更新: sudo apt update

Reply View the author
jjcui8595
deepin
Resources Team
2025-09-30 06:13
#3

终端执行更新,看看出错信息

Reply View the author
WangZhongyun
deepin
2025-09-30 07:58
#4

先控制中心更新后重启试试,还不行的话,再终端命令更新后重启。

Reply View the author
buyike
deepin
2025-09-30 08:42
#5
米饭虚拟机

试试命令行更新: sudo apt update

sudo apt update
sudo apt dist-upgrade

验证成功
命中:3 https://proposed-packages.deepin.com/beige-testing unstable/crimson InRelease
命中:1 https://app-store-files.uniontech.com/250929172441042/appstorev23 crimson InRelease
命中:4 https://cdn-community-packages.deepin.com/driver-25 snipe InRelease
获取:2 https://community-packages.deepin.com/beige crimson InRelease [36.7 kB]
已下载 36.7 kB,耗时 1秒 (31.5 kB/s)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
所有软件包均为最新。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
正在计算更新... 完成
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 initramfs-tools (0.142-0deepin8) ...
update-initramfs: deferring update (trigger activated)
正在处理用于 initramfs-tools (0.142-0deepin8) 的触发器 ...
update-initramfs: Generating /boot/initrd.img-6.6.96-amd64-desktop-hwe
libkmod: ERROR ../libkmod/libkmod-config.c:772 conf_files_filter_out: Directories inside directories are not supported: /etc/modprobe.d/virtualbox-dkms.conf
libkmod: ERROR ../libkmod/libkmod-config.c:772 conf_files_filter_out: Directories inside directories are not supported: /etc/modprobe.d/virtualbox-dkms.conf
cp: 对 '/usr/share/fonts/truetype/unifont/unifont.ttf' 调用 stat 失败: 没有那个文件或目录
setupcon is missing. Please install the 'console-setup' package.
I: The initramfs will attempt to resume from /dev/sda6
I: (UUID=f1314af5-0141-45e1-869b-06ad624b0440)
I: Set the RESUME variable to override this.
cp: 对 '/usr/share/fonts/truetype/unifont/unifont.ttf' 调用 stat 失败: 没有那个文件或目录
E: /usr/share/initramfs-tools/hooks/usec-boot-crypt failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.6.96-amd64-desktop-hwe with 1.
dpkg: 处理软件包 initramfs-tools (--configure)时出错:
已安装 initramfs-tools 软件包 post-installation 脚本 子进程返回错误状态 1
在处理时有错误发生:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
buyi@buyi-PC:~/Desktop$

Reply View the author
buyike
deepin
2025-09-30 08:43
#6
jjcui8595

终端执行更新,看看出错信息

image.png

Reply View the author
buyike
deepin
2025-09-30 08:47
#7
WangZhongyun

先控制中心更新后重启试试,还不行的话,再终端命令更新后重启。

buyi@buyi-PC:/Desktop$ sudo apt remove linux-image-6.12.33-amd64-desktop-rolling
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
软件包 linux-image-6.12.33-amd64-desktop-rolling 未安装,所以不会被卸载
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 initramfs-tools (0.142-0deepin8) ...
update-initramfs: deferring update (trigger activated)
正在处理用于 initramfs-tools (0.142-0deepin8) 的触发器 ...
update-initramfs: Generating /boot/initrd.img-6.6.96-amd64-desktop-hwe
libkmod: ERROR ../libkmod/libkmod-config.c:772 conf_files_filter_out: Directories inside directories are not supported: /etc/modprobe.d/virtualbox-dkms.conf
libkmod: ERROR ../libkmod/libkmod-config.c:772 conf_files_filter_out: Directories inside directories are not supported: /etc/modprobe.d/virtualbox-dkms.conf
cp: 对 '/usr/share/fonts/truetype/unifont/unifont.ttf' 调用 stat 失败: 没有那个文件或目录
setupcon is missing. Please install the 'console-setup' package.
I: The initramfs will attempt to resume from /dev/sda6
I: (UUID=f1314af5-0141-45e1-869b-06ad624b0440)
I: Set the RESUME variable to override this.
cp: 对 '/usr/share/fonts/truetype/unifont/unifont.ttf' 调用 stat 失败: 没有那个文件或目录
E: /usr/share/initramfs-tools/hooks/usec-boot-crypt failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.6.96-amd64-desktop-hwe with 1.
dpkg: 处理软件包 initramfs-tools (--configure)时出错:
已安装 initramfs-tools 软件包 post-installation 脚本 子进程返回错误状态 1
在处理时有错误发生:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
buyi@buyi-PC:
/Desktop$

Reply View the author
buyike
deepin
2025-09-30 08:53
#8

终端更新也不行的,前面就试过了,而且也关闭过磐石还是不行。

所以想问下,如果真是boot空间不跑,要清理旧的内核,为什么官方不开发一个小工具集成一下,最好是在图形界面让用户进行删除旧的内核。

此外,这用命令清理旧的内核同样是出错,如我这里要不是清理不了,要不就是直接说找不到。

image.png

是命令出错还是思路出错?

Reply View the author
执著的灵魂
deepin
2025-09-30 10:20
#9
buyike

终端更新也不行的,前面就试过了,而且也关闭过磐石还是不行。

所以想问下,如果真是boot空间不跑,要清理旧的内核,为什么官方不开发一个小工具集成一下,最好是在图形界面让用户进行删除旧的内核。

此外,这用命令清理旧的内核同样是出错,如我这里要不是清理不了,要不就是直接说找不到。

image.png

是命令出错还是思路出错?

这个内核好像没有正确安装

先手动删除/boot和/lib/modules目录下的相关内核文件,然后运行

sudo update-grub

sudo apt purge linux-image-完整后缀名 linux-headers-完整后缀名

Reply View the author
深井蛙DI
deepin
2025-09-30 10:22
#10

看着像是virtualbox引起的,卸载试试

Reply View the author
晚秋(lateautumn)
Moderator
2025-09-30 11:56
#11

我的龙台式机不正常。升级后没出问题。越来越好用了。

Reply View the author
buyike
deepin
2025-09-30 12:14
#12
深井蛙DI

看着像是virtualbox引起的,卸载试试

virtualbox删除不了。

Reply View the author
buyike
deepin
2025-09-30 12:14
#13
执著的灵魂

这个内核好像没有正确安装

先手动删除/boot和/lib/modules目录下的相关内核文件,然后运行

sudo update-grub

sudo apt purge linux-image-完整后缀名 linux-headers-完整后缀名

官方回复有冲突,在修复。

Reply View the author
LiuYongzhang
deepin
2025-09-30 18:45
#14
buyike

官方回复有冲突,在修复。

问的豆包

修复步骤的一键执行脚本,保存为 fix-initramfs.sh 并运行:

bash

#!/bin/bash
set -e  # 遇到错误立即退出

echo "=== 开始修复 initramfs 错误 ==="

# 1. 安装缺失的软件包
echo ">>> 安装 console-setup 和 unifont 包..."
sudo apt update
sudo apt install -y console-setup unifont

# 2. 修复 virtualbox-dkms 配置问题
echo ">>> 处理 virtualbox-dkms 配置..."
if [ -e "/etc/modprobe.d/virtualbox-dkms.conf" ]; then
    echo "检查 virtualbox 配置文件..."
    sudo apt reinstall -y virtualbox-dkms
else
    echo "未找到 virtualbox 配置文件,跳过修复..."
fi

# 3. 重新配置 dpkg 并更新 initramfs
echo ">>> 重新配置系统包并更新 initramfs..."
sudo dpkg --configure -a
sudo update-initramfs -u -k all

echo "=== 修复流程完成 ==="
echo "如果仍有错误,请检查上述命令输出中的具体提示"

使用方法:

  1. 保存脚本:nano fix-initramfs.sh
  2. 添加执行权限:chmod +x fix-initramfs.sh
  3. 运行脚本:./fix-initramfs.sh

脚本会自动执行所有修复步骤,并在关键节点显示进度。如果执行中遇到权限问题,可能需要用 sudo ./fix-initramfs.sh 运行。如果修复后仍有错误,建议重点查看 update-initramfs 命令的输出信息。

Reply View the author
昨夜的星辰
deepin
9 hours ago
#15

这玩意儿试过了,用命令行根本就检查不到更新,但是控制中心会检查到

用控制中心更新后重启,前两次都失败了,后面第三次不知道为啥莫名好了,或者在更新前打开VBOX用一用?

我这内核是自己编译的6.16.6,开始还以为是自己编译内核的原因,后面更新过去了就没管了

Reply View the author