[System Installation] 更新完v23 beta2后在终端执行upgrade报错 V23
Tofloor
poster avatar
我不是黑客
deepin
2023-09-23 21:23
Author

更新完v23 beta2后在终端执行apt-get upgrade 报错,内容如下

正在设置 linux-image-6.1.11-amd64-desktop-hwe (23.01.00.14) ...
dkms: running auto installation service for kernel 6.1.11-amd64-desktop-hwe:Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8852be/1.15.10.0.2/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8852be/1.15.10.0.2/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /lib/modules/6.1.11-amd64-desktop-hwe/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Error! The /var/lib/dkms/rtl8852au/1.15.0.1/6.1.11-amd64-desktop-hwe/x86_64/dkms.conf for module rtl8852au includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /lib/modules/6.1.11-amd64-desktop-hwe/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8852be/1.15.10.0.2/source/dkms.conf)
Error! The /var/lib/dkms/rtl8852be/1.15.10.0.2/6.1.11-amd64-desktop-hwe/x86_64/dkms.conf for module rtl8852be includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
update-initramfs: Generating /boot/initrd.img-6.1.11-amd64-desktop-hwe
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=01be2fc7-7db9-4c0f-879f-7a62066bd2e5)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dns.

fix systemd/logind config
get rootb uuid error: failed to get "rootb" uuid
Generating grub configuration file ...
Found theme: /boot/grub/themes/deepin/theme.txt
Found linux image: /boot/vmlinuz-6.1.32-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-6.1.32-amd64-desktop-hwe
Found linux image: /boot/vmlinuz-6.1.11-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-6.1.11-amd64-desktop-hwe
Found linux image: /boot/vmlinuz-5.18.17-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-5.18.17-amd64-desktop-hwe
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
done
dpkg: 处理软件包 linux-image-6.1.11-amd64-desktop-hwe (--configure)时出错:
已安装 linux-image-6.1.11-amd64-desktop-hwe 软件包 post-installation 脚本 子进程返回错误状态 1
正在设置 linux-image-6.1.32-amd64-desktop-hwe (23.01.00.20) ...
dkms: running auto installation service for kernel 6.1.32-amd64-desktop-hwe:Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8852be/1.15.10.0.2/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8852be/1.15.10.0.2/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /lib/modules/6.1.32-amd64-desktop-hwe/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Error! The /var/lib/dkms/rtl8852au/1.15.0.1/6.1.32-amd64-desktop-hwe/x86_64/dkms.conf for module rtl8852au includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /lib/modules/6.1.32-amd64-desktop-hwe/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8852be/1.15.10.0.2/source/dkms.conf)
Error! The /var/lib/dkms/rtl8852be/1.15.10.0.2/6.1.32-amd64-desktop-hwe/x86_64/dkms.conf for module rtl8852be includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
update-initramfs: Generating /boot/initrd.img-6.1.32-amd64-desktop-hwe
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=01be2fc7-7db9-4c0f-879f-7a62066bd2e5)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dns.

fix systemd/logind config
get rootb uuid error: failed to get "rootb" uuid
Generating grub configuration file ...
Found theme: /boot/grub/themes/deepin/theme.txt
Found linux image: /boot/vmlinuz-6.1.32-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-6.1.32-amd64-desktop-hwe
Found linux image: /boot/vmlinuz-6.1.11-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-6.1.11-amd64-desktop-hwe
Found linux image: /boot/vmlinuz-5.18.17-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-5.18.17-amd64-desktop-hwe
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
done
dpkg: 处理软件包 linux-image-6.1.32-amd64-desktop-hwe (--configure)时出错:
已安装 linux-image-6.1.32-amd64-desktop-hwe 软件包 post-installation 脚本 子进程返回错误状态 1
dpkg: 依赖关系问题使得 linux-image-deepin-hwe-amd64 的配置工作不能继续:
linux-image-deepin-hwe-amd64 依赖于 linux-image-6.1.32-amd64-desktop-hwe;然而:
软件包 linux-image-6.1.32-amd64-desktop-hwe 尚未配置。

dpkg: 处理软件包 linux-image-deepin-hwe-amd64 (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
linux-image-6.1.11-amd64-desktop-hwe
linux-image-6.1.32-amd64-desktop-hwe
linux-image-deepin-hwe-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply Favorite View the author
All Replies
昨夜的星辰
deepin
2023-09-24 06:14
#1

别重启,先到控制中心更新一下试试,你这一重启有可能会启动不进来了,grub那块看样子好像没更新完成

Reply View the author
我不是黑客
deepin
2023-09-24 07:18
#2
昨夜的星辰

别重启,先到控制中心更新一下试试,你这一重启有可能会启动不进来了,grub那块看样子好像没更新完成

重启了没事,能起来,不过你说的更新失败好像是有,在控制中心更新的时候最后确实提示失败了,但是再次更新直接提示更新成功,是最新的了。然后在终端执行upgrade就报错了

Reply View the author