[Feedback on issues] Deepin V25为什么会收到2024年12月的更新?又不能成功更新
Tofloor
poster avatar
1***3@qq.com
deepin
2025-08-02 23:11
Author

收到下面的更新,但更新失败,好像是说dpkg失败,然后提示还原

截图_选择区域_20250803000536.png

Reply Favorite View the author
All Replies
Μαησεωφ
deepin
2025-08-02 23:30
#1

因为 beige 是 V23 的代号

Reply View the author
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2025-08-02 23:36
#2

你看看你etc/apt/sources.list的源是不是改成了beige的版本号

Reply View the author
1***3@qq.com
deepin
2025-08-03 13:01
#3
把一切操作变成GUI

你看看你etc/apt/sources.list的源是不是改成了beige的版本号

感谢回复,确实之前为了装应用,改了镜像源

请问我应该改成什么呢?

可以发一个原版的/etc/apt/sources.list内容吗?

我之前忘记备份了

Reply View the author
1***3@qq.com
deepin
2025-08-03 15:23
#4

Codename: crimson

我改回这个就可以了吧?

https://community-packages.deepin.com/deepin/ 下只有这些,实在不知道该怎么设置了

apricot/                                           20-Nov-2024 05:26                   -
beige/                                             27-Mar-2023 08:38                   -
dists/                                             20-Nov-2024 05:26                   -
immutable-repos/                                   08-Jan-2025 07:08                   -
pool/                                              20-Nov-2024 05:33           
Reply View the author
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2025-08-03 18:44
#5
1***3@qq.com

感谢回复,确实之前为了装应用,改了镜像源

请问我应该改成什么呢?

可以发一个原版的/etc/apt/sources.list内容吗?

我之前忘记备份了

原本就是

deb https://community-packages.deepin.com/beige/ crimson main commercial community

Reply View the author
1***3@qq.com
deepin
2025-08-03 20:37
#6

换成上面的源后又收到beige 2024年12月的更新了,还更新不成功,无解了

Reply View the author
骑木马的哥哥
deepin
2025-08-04 16:16
#7
1***3@qq.com

换成上面的源后又收到beige 2024年12月的更新了,还更新不成功,无解了

更换软件源后,如果没有清理掉旧的软件包缓存,并重新拉取新的软件包依赖文件。那么,依旧是使用的旧的软件包依赖,就会出现依旧提示你升级的现象。

确保源修改正确后,终端执行下面的命令可以清理旧的软件包缓存:

sudo apt clean all

清理后,再重新检查更新试试呢。

Reply View the author
1***3@qq.com
deepin
2025-08-04 21:50
#8
骑木马的哥哥

更换软件源后,如果没有清理掉旧的软件包缓存,并重新拉取新的软件包依赖文件。那么,依旧是使用的旧的软件包依赖,就会出现依旧提示你升级的现象。

确保源修改正确后,终端执行下面的命令可以清理旧的软件包缓存:

sudo apt clean all

清理后,再重新检查更新试试呢。

执行清理命令还是会显示已经下载好的更新,

我怎么才能删掉之前下载的更新呢?

这是安装更新的失败日志

更新日志_2025_08_04_22.45.32.txt

Reply View the author
1***3@qq.com
deepin
2025-08-08 00:31
#9

我硬盘明明有好多空间,但试了好多次都是到98%更新失败

失败原因就说空间不足

[2025-08-08 01:21:49] Use 'apt autoremove' to remove them.
[2025-08-08 01:21:50] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[2025-08-08 01:21:50] 1 not fully installed or removed.
[2025-08-08 01:21:50] After this operation, 0 B of additional disk space will be used.
[2025-08-08 01:21:50] Setting up initramfs-tools (0.142-0deepin8) ...
[2025-08-08 01:21:50] update-initramfs: deferring update (trigger activated)
[2025-08-08 01:21:52] Error: failed to sync kernel from boot: failed to commit and checkout kernel from /boot: failed to commit /boot to boot repo: failed to execute ostree commit command: command { /usr/bin/ostree commit --repo=/boot/immutable/repo --tree=dir=/var/tmp/deepin-immutable-2178983309 --branch=boot/8a0586f92b2b1cedcba7d480f6cfe99d3ce5bff5e131f93a2a5cd411af91b64a.0 --subject=/boot --link-checkout-speedup --parent=none } failed, error: exit status 1, stderr: error: Writing content object: write: No space left on device
[2025-08-08 01:21:52] 
[2025-08-08 01:21:52] dpkg: error processing package initramfs-tools (--configure):
[2025-08-08 01:21:52]  installed initramfs-tools package post-installation script subprocess returned error exit status 1
[2025-08-08 01:21:53] Errors were encountered while processing:
[2025-08-08 01:21:53]  initramfs-tools
[2025-08-08 01:21:53] Running external script: '/var/lib/lastore/scripts/build_system_info || true '
[2025-08-08 01:21:54] E: Sub-process /usr/bin/dpkg returned an error code (1)
[2025-08-08 01:21:54] === 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::SourceParts=/var/lib/lastore/SystemSource.d -o Dir::Etc::SourceList=/dev/null [Status: FAILED] ===

Reply View the author
1***3@qq.com
deepin
2025-08-11 00:29
#10

自己解决了

开始以为接收到2024年的更新是我设置的问题,实际不管我怎么设置都会收到

只能找出不能更新的原因,Log说我空间不足,仔细看了下

failed to sync kernel from boot: write: No space left on device

#df -h /boot

发现只剩下不到100MB的空间

#dpkg --list | grep linux-image

之前好多次更新的都在里面

于是只保留最新的2个,其余的删掉后释放空间,终于可以更新了

#rm -f /boot/config-6.12.{20,28}-amd64-desktop-rolling
/boot/initrd.img-6.12.{20,28}-amd64-desktop-rolling
/boot/System.map-6.12.{20,28}-amd64-desktop-rolling
/boot/vmlinuz-6.12.{20,28}-amd64-desktop-rolling

可能只保留和uname -r输出的内容相同的就可以

删除旧内核包

#apt purge linux-image-6.12.20-amd64-desktop-rolling
linux-image-6.12.28-amd64-desktop-rolling

自动清理依赖
#apt autoremove --purge

更新 GRUB

#update-grub

Reply View the author