[Bug Report] 更新失败,只能回退
Tofloor
poster avatar
177******05
deepin
2025-07-29 09:22
Author
 
 
下面这是导出的日志:
[2025-07-29 09:06:11] === Ostree cmd running: [/usr/sbin/deepin-immutable-ctl admin rollback --can-rollback -j -v] ===
[2025-07-29 09:06:11] {"code":0,"message":"success","error":null,"data":{"version":1,"can_rollback":false,"time":0,"name":"","auto":false,"reboot":false}}
[2025-07-29 09:06:11] === Ostree [/usr/sbin/deepin-immutable-ctl admin rollback --can-rollback -j -v] end ===
[2025-07-29 09:06:41] === Job update_source running: /bin/sh -c apt-get -y -o APT::Status-Fd=3 -o Dir::Etc::SourceList=/dev/null -o Dir::Etc::SourceParts=/tmp/1294641985Source.d -o APT::Status-Fd=3 update --fix-missing && /var/lib/lastore/scripts/build_system_info -now ===
[2025-07-29 09:06:42] Hit:1 https://app-store-files.uniontech.com/250728173434006/appstorev23 beige InRelease
[2025-07-29 09:06:42] Hit:4 https://apt.enpass.io stable InRelease
[2025-07-29 09:06:42] Hit:2 https://cdn-community-packages.deepin.com/driver-25 snipe InRelease
[2025-07-29 09:06:43] Hit:3 https://community-packages.deepin.com/beige crimson InRelease
[2025-07-29 09:06:43] Get:5 https://repo.steampowered.com/steam stable InRelease [2,858 B]
[2025-07-29 09:06:45] Fetched 2,858 B in 4s (791 B/s)
[2025-07-29 09:06:45] Reading package lists...
[2025-07-29 09:06:46] pgrep: pattern that searches for process name longer than 15 characters will result in zero matches
[2025-07-29 09:06:46] Try `pgrep -f' option to match against the complete command line.
[2025-07-29 09:06:49] E: lstat /lastore/override/desktop2uaid: no such file or directory
[2025-07-29 09:06:49] === Job update_source end: /bin/sh -c apt-get -y -o APT::Status-Fd=3 -o Dir::Etc::SourceList=/dev/null -o Dir::Etc::SourceParts=/tmp/1294641985Source.d -o APT::Status-Fd=3 update --fix-missing && /var/lib/lastore/scripts/build_system_info -now [Status: SUCCESS] ===
[2025-07-29 09:08:08] === Job backup running: /usr/sbin/deepin-immutable-ctl admin deploy --backup -v ===
[2025-07-29 09:08:08]  deploy_status.go:479: Remove unused immutable boot dir: 914508bfae5b966243a062ab004cab22a9b0a8f1cc56c77e061ffb254200d9ae.0
[2025-07-29 09:08:08]  deploy_status.go:393: Remove unused data deploy: 914508bfae5b966243a062ab004cab22a9b0a8f1cc56c77e061ffb254200d9ae.0
[2025-07-29 09:08:11]  deploy_status.go:561: Remove unused data deploy 914508bfae5b966243a062ab004cab22a9b0a8f1cc56c77e061ffb254200d9ae.0 overlay upper
[2025-07-29 09:08:11]  deploy_status.go:543: Remove unused layer 1f0a748eed324658
[2025-07-29 09:08:14]  deploy_status.go:543: Remove unused layer 3bc3b9d236ac0bf1
[2025-07-29 09:08:15]  deploy_status.go:656: Remove unused system deploy: ef97c1d3790f580fd3eca7357bdb077b68561ef91c8f5ac40e5018210d10cd65.1
[2025-07-29 09:08:33]  ostree_manager.go:258: Preparing backup environment...
[2025-07-29 09:08:38]  ostree_manager.go:647: Syncing etc ...
[2025-07-29 09:08:39]  ostree_manager.go:647: Syncing opt ...
[2025-07-29 09:08:39]  ostree_manager.go:647: Syncing usr ...
[2025-07-29 09:08:47]  ostree_manager.go:784: Submitting changes to ostree...
[2025-07-29 09:09:25] Deploy successfully.
[2025-07-29 09:09:25]  deploy_status.go:479: Remove unused immutable boot dir: 5a322e90dc72c238f1d86ba7608139794a1bedae08a396bdf468e159a2965142.0
[2025-07-29 09:09:31] === Job backup end: /usr/sbin/deepin-immutable-ctl admin deploy --backup -v [Status: SUCCESS] ===
[2025-07-29 09:09:36] === CheckPkg cmd running: [apt-get check -o Debug::NoLocking=1] ===
[2025-07-29 09:09:36] Reading package lists...
[2025-07-29 09:09:36] Building dependency tree...
[2025-07-29 09:09:36] Reading state information...
[2025-07-29 09:09:36] === CheckPkg [apt-get check -o Debug::NoLocking=1] end ===
[2025-07-29 09:09:36] === CheckPkg cmd running: [apt-get check] ===
[2025-07-29 09:09:36] Reading package lists...
[2025-07-29 09:09:36] Building dependency tree...
[2025-07-29 09:09:36] Reading state information...
[2025-07-29 09:09:36] W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
[2025-07-29 09:09:36] W: Not using locking for read only lock file /var/lib/dpkg/lock
[2025-07-29 09:09:36] === CheckPkg [apt-get check] end ===
[2025-07-29 09:09:38] === 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-29 09:09:38] Reading package lists...
[2025-07-29 09:09:38] Building dependency tree...
[2025-07-29 09:09:39] Reading state information...
[2025-07-29 09:09:39] Calculating upgrade...
[2025-07-29 09:09:39] The following packages were automatically installed and are no longer required:
[2025-07-29 09:09:39]   docbook-xml docbook-xsl dtk5-gles.runtime.szbt gperf kf5-gles.res.szbt
[2025-07-29 09:09:39]   kf5-gles.runtime.szbt ladspa-sdk libappstream4 libappstreamqt2 libepub0
[2025-07-29 09:09:39]   libomp5 libomp5-17 libpackagekitqt5-1 libphonon4qt5-4 libphonon4qt5-data
[2025-07-29 09:09:39]   libpoppler-qt5-1 libqmobipocket2 libssh-gcrypt-4 libu2f-udev
[2025-07-29 09:09:39]   qt5.15gles-basic.runtime.szbt qt5.15gles-extra.runtime.szbt sgml-data
[2025-07-29 09:09:39] Use 'apt autoremove' to remove them.
[2025-07-29 09:09:39] The following packages will be upgraded:
[2025-07-29 09:09:39]   deepin-immutable-boot deepin-immutable-ctl linux-firmware
[2025-07-29 09:09:39] 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[2025-07-29 09:09:39] Need to get 0 B/584 MB of archives.
[2025-07-29 09:09:39] After this operation, 0 B of additional disk space will be used.
[2025-07-29 09:09:39] (Reading database ... 
[2025-07-29 09:09:39] (Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
[2025-07-29 09:09:39] (Reading database ... 45%
[2025-07-29 09:09:39] (Reading database ... 50%
[2025-07-29 09:09:39] (Reading database ... 55%
[2025-07-29 09:09:39] (Reading database ... 60%
[2025-07-29 09:09:39] (Reading database ... 65%
[2025-07-29 09:09:39] (Reading database ... 70%
[2025-07-29 09:09:39] (Reading database ... 75%
[2025-07-29 09:09:39] (Reading database ... 80%
[2025-07-29 09:09:39] (Reading database ... 85%
[2025-07-29 09:09:39] (Reading database ... 90%
[2025-07-29 09:09:39] (Reading database ... 95%
[2025-07-29 09:09:39] (Reading database ... 100%
(Reading database ... 407728 files and directories currently installed.)
[2025-07-29 09:09:39] Preparing to unpack .../deepin-immutable-boot_0.0.43.8_amd64.deb ...
[2025-07-29 09:09:40] Unpacking deepin-immutable-boot (0.0.43.8) over (0.0.43.4) ...
[2025-07-29 09:09:40] Preparing to unpack .../deepin-immutable-ctl_0.0.43.8_amd64.deb ...
[2025-07-29 09:09:40] Removing 'diversion of /sbin/update-initramfs to /sbin/update-initramfs.real by deepin-immutable-ctl'
[2025-07-29 09:09:40] mv: '/sbin/update-initramfs.real' and '/sbin/update-initramfs' are the same file
[2025-07-29 09:09:40] dpkg: error processing archive /var/cache/lastore/archives/deepin-immutable-ctl_0.0.43.8_amd64.deb (--unpack):
[2025-07-29 09:09:40]  new deepin-immutable-ctl package pre-installation script subprocess returned error exit status 1
[2025-07-29 09:09:40] Preparing to unpack .../linux-firmware_20250310.git9e1370d3-0ubuntu1deepin3_all.deb ...
[2025-07-29 09:09:40] Unpacking linux-firmware (20250310.git9e1370d3-0ubuntu1deepin3) over (20250310.git9e1370d3-0ubuntu1deepin2) ...
[2025-07-29 09:10:03] Errors were encountered while processing:
[2025-07-29 09:10:03]  /var/cache/lastore/archives/deepin-immutable-ctl_0.0.43.8_amd64.deb
[2025-07-29 09:10:04] Running external script: '/var/lib/lastore/scripts/build_system_info || true '
[2025-07-29 09:10:04] E: Sub-process /usr/bin/dpkg returned an error code (1)
[2025-07-29 09:10:04] === 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
deepin-流云
Moderator
Community OP
2025-07-29 15:40
#1

麻烦看下私信加下我企微,拉研发人员协助定位问题

Reply View the author
177******05
deepin
2025-07-29 16:22
#2
deepin-流云

麻烦看下私信加下我企微,拉研发人员协助定位问题

怎么加
 
Reply View the author
deepin-流云
Moderator
Community OP
2025-07-29 16:25
#3
177******05
怎么加
 

我已经私信你了,你拿微信扫我的企微二维码即可

Reply View the author
zhaohui
deepin
Community Developer
2025-07-29 19:36
#4

由于/sbin/update-initramfs和/sbin/update-initramfs.real这两个文件属于硬链接关系导致mv操作失败,以下两种方式可以解决:

  1. 删除 /sbin/update-initramfs.real 文件,然后更新
  2. 控制中心忽略这个错误,继续更新,尽管dpkg报错了,但是/sbin/update-initramfs 与 /sbin/update-initramfs.real文件转移关系已删除,可以继续后续升级操作
Reply View the author