[3rd-Party Apps] overlayroot卸载失败导致apt无法使用。
Tofloor
poster avatar
lyquid
deepin
2024-05-21 15:26
Author

不知道为什么overlayroot被dpkg标记为卸载状态,但又无法卸载成功,导致apt无法正常使用,安装新软件包时都会尝试删除overlayroot。

尝试sudo apt install --fix-broken

lyq@lyq-deepin:~/Desktop$ sudo apt install --fix-broken
正在读取软件包列表... 完成
正在分析软件包的依赖关系树   
正在读取状态信息... 完成   
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 overlayroot (0.27deepin1.7-1+back) ...
update-initramfs: Generating /boot/initrd.img-5.15.77-amd64-desktop
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries 
    nor crypto modules. If that's on purpose, you may want to uninstall the 
    'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs 
    integration and avoid this warning.
I: The initramfs will attempt to resume from /dev/nvme0n1p7
I: (UUID=8e8f8656-1fe1-4b99-87de-3d0c1141d02b)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dnsE: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.77-amd64-desktop with 1.
dpkg: 处理软件包 overlayroot (--configure)时出错:
 已安装 overlayroot 软件包 post-installation 脚本 子进程返回错误状态 1
在处理时有错误发生:
 overlayroot
E: Sub-process /usr/bin/dpkg returned an error code (1)

尝试重新安装 sudo apt install --reinstall overlayroot

lyq@lyq-deepin:~/Desktop$ sudo apt install --reinstall overlayroot
正在读取软件包列表... 完成
正在分析软件包的依赖关系树   
正在读取状态信息... 完成   
升级了 0 个软件包,新安装了 0 个软件包,重新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
需要下载 13.7 kB 的归档。
解压缩后会消耗 0 B 的额外空间。
获取:1 https://community-packages.deepin.com/deepin apricot/main amd64 overlayroot all 0.27deepin1.7-1+back [13.7 kB]
已下载 13.7 kB,耗时 0秒 (87.3 kB/s)  
(正在读取数据库 ... 系统当前共安装有 315630 个文件和目录。)
准备解压 .../overlayroot_0.27deepin1.7-1+back_all.deb  ...
正在解压 overlayroot (0.27deepin1.7-1+back) 并覆盖 (0.27deepin1.7-1+back) ...
正在设置 overlayroot (0.27deepin1.7-1+back) ...
update-initramfs: Generating /boot/initrd.img-5.15.77-amd64-desktop
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries 
    nor crypto modules. If that's on purpose, you may want to uninstall the 
    'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs 
    integration and avoid this warning.
I: The initramfs will attempt to resume from /dev/nvme0n1p7
I: (UUID=8e8f8656-1fe1-4b99-87de-3d0c1141d02b)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dnsE: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.77-amd64-desktop with 1.
dpkg: 处理软件包 overlayroot (--configure)时出错:
 已安装 overlayroot 软件包 post-installation 脚本 子进程返回错误状态 1
正在处理用于 man-db (2.8.5-3) 的触发器 ...
在处理时有错误发生:
 overlayroot
E: Sub-process /usr/bin/dpkg returned an error code (1)

都无法解决,有人知道该怎么办吗

Reply Favorite View the author
All Replies
神末shenmo
deepin
Spark-App
2024-05-21 15:32
#1

http://120.132.17.134:3000/better-dde/better-deepin23/src/branch/master/deb-packages/open-infrastructure-system-boot/open-infrastructure-system-boot_20190301-lts1-3_all.deb

你用dpkg -i装一下这个包然后重试

Reply View the author
lyquid
deepin
2024-05-21 15:53
#2
神末shenmo

http://120.132.17.134:3000/better-dde/better-deepin23/src/branch/master/deb-packages/open-infrastructure-system-boot/open-infrastructure-system-boot_20190301-lts1-3_all.deb

你用dpkg -i装一下这个包然后重试

不知道为什么下载不了

lyq@lyq-deepin:~/Documents$ wget http://120.132.17.134/better-dde/better-deepin23/src/branch/master/deb-packages/open-infrastructure-system-boot/open-infrastructure-system-boot_20190301-lts1-3_all.deb
--2024-05-21 15:48:37--  http://120.132.17.134/better-dde/better-deepin23/src/branch/master/deb-packages/open-infrastructure-system-boot/open-infrastructure-system-boot_20190301-lts1-3_all.deb
正在连接 127.0.0.1:7890... 已连接。
已发出 Pro(敏感词)xy 请求,正在等待回应... 502 Bad Gateway
2024-05-21 15:48:37 错误 502:Bad Gateway。

我试了下我的网络应该是正常的

lyq@lyq-deepin:~/Documents$ wget www.google.com
--2024-05-21 15:48:21--  http://www.google.com/
正在连接 127.0.0.1:7890... 已连接。
已发出 Pr(敏感词)oxy 请求,正在等待回应... 200 OK
长度:未指定 [text/html]
正在保存至: “index.html”

index.html                    [ <=>                               ]  20.63K  --.-KB/s  用时 0.08s   

2024-05-21 15:48:22 (249 KB/s) - “index.html” 已保存 [21124]

Reply View the author
lyquid
deepin
2024-05-21 15:58
#3
神末shenmo

http://120.132.17.134:3000/better-dde/better-deepin23/src/branch/master/deb-packages/open-infrastructure-system-boot/open-infrastructure-system-boot_20190301-lts1-3_all.deb

你用dpkg -i装一下这个包然后重试

我在论坛里搜索了一下,发现问题与这个帖子一致https://bbs.deepin.org/zh/post/258730?offset=1&limit=20#comment
把additional-base-lib卸载掉就好了

Reply View the author
神末shenmo
deepin
Spark-App
2024-05-21 16:18
#4
lyquid

不知道为什么下载不了

lyq@lyq-deepin:~/Documents$ wget http://120.132.17.134/better-dde/better-deepin23/src/branch/master/deb-packages/open-infrastructure-system-boot/open-infrastructure-system-boot_20190301-lts1-3_all.deb
--2024-05-21 15:48:37--  http://120.132.17.134/better-dde/better-deepin23/src/branch/master/deb-packages/open-infrastructure-system-boot/open-infrastructure-system-boot_20190301-lts1-3_all.deb
正在连接 127.0.0.1:7890... 已连接。
已发出 Pro(敏感词)xy 请求,正在等待回应... 502 Bad Gateway
2024-05-21 15:48:37 错误 502:Bad Gateway。

我试了下我的网络应该是正常的

lyq@lyq-deepin:~/Documents$ wget www.google.com
--2024-05-21 15:48:21--  http://www.google.com/
正在连接 127.0.0.1:7890... 已连接。
已发出 Pr(敏感词)oxy 请求,正在等待回应... 200 OK
长度:未指定 [text/html]
正在保存至: “index.html”

index.html                    [ <=>                               ]  20.63K  --.-KB/s  用时 0.08s   

2024-05-21 15:48:22 (249 KB/s) - “index.html” 已保存 [21124]

啊,漏了个3000

论坛自己给吃了

Reply View the author