[Package Installer] apt upgrade时遇到报错
Tofloor
poster avatar
潇潇雨竹
deepin
2022-11-27 21:39
Author

正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在计算更新... 完成
下列软件包是自动安装的并且现在不需要了:
linux-headers-6.0.3-x64v1-xanmod1 linux-image-6.0.3-x64v1-xanmod1
使用'apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
您希望继续执行吗? [Y/n] Y
正在设置 deepin-anything-dkms (6.0.3-1) ...
Removing old deepin-anything-0.0 DKMS files...

Deleting module version: 0.0
completely from the DKMS tree.

Done.
Loading new deepin-anything-0.0 DKMS files...
Building for 6.0.10-x64v1-xanmod1
Building initial module for 6.0.10-x64v1-xanmod1
Error! Bad return status for module build on kernel: 6.0.10-x64v1-xanmod1 (x86_64)
Consult /var/lib/dkms/deepin-anything/0.0/build/make.log for more information.
dpkg: 处理软件包 deepin-anything-dkms (--configure)时出错:
已安装 deepin-anything-dkms 软件包 post-installation 脚本 子进程返回错误状态 10
dpkg: 依赖关系问题使得 dde-file-manager 的配置工作不能继续:
dde-file-manager 依赖于 deepin-anything-dkms;然而:
软件包 deepin-anything-dkms 尚未配置。

dpkg: 处理软件包 dde-file-manager (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg: 依赖关系问题使得 deepin-anything-server 的配置工作不能继续:
deepin-anything-server 依赖于 deepin-anything-dkms;然而:
软件包 deepin-anything-dkms 尚未配置。

dpkg: 处理软件包 deepin-anything-server (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
deepin-anything-dkms
dde-file-manager
deepin-anything-server
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

dpkg -l |grep dkms
ii aufs-dkms 4.19+20190211-1 all DKMS files to build and install aufs
iF deepin-anything-dkms 6.0.3-1 all anything module
ii dkms 2.6.1-4 all Dynamic Kernel Module Support Framework
ii huawei-wmi-dkms 2.0-1-1+eagle amd64
rc uengine-modules-dkms 13.5 all Android kernel driver (binder, ashmem) in DKMS format.
rc zfs-dkms 0.8.4-2~bpo10+1 all OpenZFS filesystem kernel modules for Linux

Reply Favorite View the author
All Replies
潇潇雨竹
deepin
2022-11-27 21:41
#1

升级到20.8的时候apt update发现有需要升级的包,然后apt upgrade执行了下,结果就报软件错误,这些软件是有依赖错误吗?

Reply View the author
忘记、过去
deepin
2022-11-27 21:45
#2

6.0 内核是你自己安装的吗?文管的依赖 deepin-anything 不支持这个内核

Reply View the author
潇潇雨竹
deepin
2022-11-27 23:36
#3

卸载软件也报错

apt autoremove
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包将被【卸载】:
linux-headers-6.0.3-x64v1-xanmod1 linux-image-6.0.3-x64v1-xanmod1
升级了 0 个软件包,新安装了 0 个软件包,要卸载 2 个软件包,有 0 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
解压缩后将会空出 454 MB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 712184 个文件和目录。)
正在卸载 linux-headers-6.0.3-x64v1-xanmod1 (6.0.3-x64v1-xanmod1-020221021.gitdb447e7) ...
正在卸载 linux-image-6.0.3-x64v1-xanmod1 (6.0.3-x64v1-xanmod1-0
20221021.gitdb447e7) ...
update-initramfs: Deleting /boot/initrd.img-6.0.3-x64v1-xanmod1
get rootb uuid error: failed to get "rootb" uuid
正在生成 grub 配置文件 ...
找到主题:/boot/grub/themes/deepin/theme.txt
Found background image: /boot/grub/themes/deepin/background.jpg
找到 Linux 镜像:/boot/vmlinuz-6.0.10-x64v1-xanmod1
找到 initrd 镜像:/boot/initrd.img-6.0.10-x64v1-xanmod1
找到 Linux 镜像:/boot/vmlinuz-6.0.9-x64v1-xanmod1
找到 initrd 镜像:/boot/initrd.img-6.0.9-x64v1-xanmod1
找到 Linux 镜像:/boot/vmlinuz-5.15.77-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-5.15.77-amd64-desktop
找到 Linux 镜像:/boot/vmlinuz-5.15.34-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-5.15.34-amd64-desktop
完成
正在设置 deepin-anything-dkms (6.0.3-1) ...
Removing old deepin-anything-0.0 DKMS files...


Done.

Deleting module version: 0.0
completely from the DKMS tree.

Loading new deepin-anything-0.0 DKMS files...
Building for 6.0.10-x64v1-xanmod1
Building initial module for 6.0.10-x64v1-xanmod1
Error! Bad return status for module build on kernel: 6.0.10-x64v1-xanmod1 (x86_64)
Consult /var/lib/dkms/deepin-anything/0.0/build/make.log for more information.
dpkg: 处理软件包 deepin-anything-dkms (--configure)时出错:
已安装 deepin-anything-dkms 软件包 post-installation 脚本 子进程返回错误状态 10
dpkg: 依赖关系问题使得 dde-file-manager 的配置工作不能继续:
dde-file-manager 依赖于 deepin-anything-dkms;然而:
软件包 deepin-anything-dkms 尚未配置。

dpkg: 处理软件包 dde-file-manager (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg: 依赖关系问题使得 deepin-anything-server 的配置工作不能继续:
deepin-anything-server 依赖于 deepin-anything-dkms;然而:
软件包 deepin-anything-dkms 尚未配置。

dpkg: 处理软件包 deepin-anything-server (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
deepin-anything-dkms
dde-file-manager
deepin-anything-server
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply View the author
潇潇雨竹
deepin
2022-11-27 23:36
#4
忘记、过去

6.0 内核是你自己安装的吗?文管的依赖 deepin-anything 不支持这个内核

是的,自己安装的xanmod的kernel

Reply View the author
安洛
deepin
2022-11-28 00:36
#5

用dpkg卸载xanmod。然后sudo apt install -f。记得换成另一个支持的内核。

Reply View the author
潇潇雨竹
deepin
2022-11-28 01:13
#6
安洛

用dpkg卸载xanmod。然后sudo apt install -f。记得换成另一个支持的内核。

我试试,多谢了!

Reply View the author
漂泊的旅客
deepin
2022-11-28 20:10
#7

这两天,我也遇见这个问题。

我用的是Deepin V23 Alpha,。执行了“sudo apt upgrade"、"sudo apt autoremove"、”sudo apt update.发现下载很多个包,也把以前的很多包删除了,重启后,发现Deepin V23 Alpha,滚回了20.8.无法进入系统。

Reply View the author