[Kernel/Drive] apt升级内核报错
Tofloor
poster avatar
兆兆嘟嘟嘟
deepin
2023-08-17 08:47
Author
mayizhao@LAPTOP-57CBE336:~$ sudo dpkg --configure -a
正在设置 linux-image-6.4.7-amd64-desktop-hwe (6.4.7-1) ...
dkms: running auto installation service for kernel 6.4.7-amd64-desktop-hwe:Sign command: /lib/modules/6.4.7-amd64-desktop-hwe/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Error! The directory /var/lib/dkms/asg_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
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.4.7-amd64-desktop-hwe
live-boot: core filesystems devices utils udev blockdev dns.
fix systemd/logind config
Generating grub configuration file ...
Found theme: /boot/grub/themes/deepin/theme.txt
Found background image: /boot/grub/themes/deepin/background.jpg
Found linux image: /boot/vmlinuz-6.4.7-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-6.4.7-amd64-desktop-hwe
Found linux image: /boot/vmlinuz-6.1.32-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-6.1.32-amd64-desktop-hwe
Found deepin image: /boot/deepin/vmlinuz-5.18.17-amd64-desktop-hwe
Found initrd image: /boot/deepin/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.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
dpkg: 处理软件包 linux-image-6.4.7-amd64-desktop-hwe (--configure)时出错:
 已安装 linux-image-6.4.7-amd64-desktop-hwe 软件包 post-installation 脚本 子进程返回错误状态 1
正在设置 linux-image-6.1.32-amd64-desktop-hwe (23.01.00.19) ...
dkms: running auto installation service for kernel 6.1.32-amd64-desktop-hwe: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 directory /var/lib/dkms/asg_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
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
live-boot: core filesystems devices utils udev blockdev dns.
fix systemd/logind config
Generating grub configuration file ...
Found theme: /boot/grub/themes/deepin/theme.txt
Found background image: /boot/grub/themes/deepin/background.jpg
Found linux image: /boot/vmlinuz-6.4.7-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-6.4.7-amd64-desktop-hwe
Found linux image: /boot/vmlinuz-6.1.32-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-6.1.32-amd64-desktop-hwe
Found deepin image: /boot/deepin/vmlinuz-5.18.17-amd64-desktop-hwe
Found initrd image: /boot/deepin/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.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
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.4.7-amd64-desktop-hwe
 linux-image-6.1.32-amd64-desktop-hwe
 linux-image-deepin-hwe-amd64

用apt命令升级内核以后每次运行apt或dpkg相关进程总是会有类似报错,请问如何解决?

Reply Favorite View the author
All Replies
pzm9012
Moderator
2023-08-17 14:42
#1

这是你装了xdroid导致出现问题了吧

Reply View the author
black_white_bear
deepin
2023-08-17 16:31
#2

dkms: running auto installation service for kernel 6.4.7-amd64-desktop-hwe:Sign command: /lib/modules/6.4.7-amd64-desktop-hwe/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Error! The directory /var/lib/dkms/asg_xdroid/2.0/source does not appear to have module source located within it. Build halted. Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information. failed!

这是编译好的直接安装吧!这还能出现编译失败!!……

Reply View the author
安洛
deepin
2023-08-17 17:31
#3

xdroid最新支持到linux 6.3,不支持linux 6.4

Reply View the author
安洛
deepin
2023-08-17 17:32
#4
black_white_bear

dkms: running auto installation service for kernel 6.4.7-amd64-desktop-hwe:Sign command: /lib/modules/6.4.7-amd64-desktop-hwe/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Error! The directory /var/lib/dkms/asg_xdroid/2.0/source does not appear to have module source located within it. Build halted. Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information. failed!

这是编译好的直接安装吧!这还能出现编译失败!!……

这是外部加载的内核模块编译失败了,内核本身没有问题。

Reply View the author
兆兆嘟嘟嘟
deepin
2023-08-18 03:57
#5
安洛

xdroid最新支持到linux 6.3,不支持linux 6.4

但是我从6.4内核进入系统后还能用xdroid。

Reply View the author
兆兆嘟嘟嘟
deepin
2023-08-18 03:59
#6
安洛

这是外部加载的内核模块编译失败了,内核本身没有问题。

我就是直接运行这个命令安装的,为什么会仍未被配置?

sudo apt install linux-image-6.4.7-amd64-desktop-hwe linux-headers-6.4.7-amd64-desktop-hwe

Reply View the author
兆兆嘟嘟嘟
deepin
2023-08-18 04:00
#7
pzm9012

这是你装了xdroid导致出现问题了吧

这跟xdroid有什么关系?

Reply View the author
兆兆嘟嘟嘟
deepin
2023-08-18 04:01
#8
black_white_bear

dkms: running auto installation service for kernel 6.4.7-amd64-desktop-hwe:Sign command: /lib/modules/6.4.7-amd64-desktop-hwe/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Error! The directory /var/lib/dkms/asg_xdroid/2.0/source does not appear to have module source located within it. Build halted. Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information. failed!

这是编译好的直接安装吧!这还能出现编译失败!!……

我就是直接运行这个命令安装的,为什么会仍未被配置?

sudo apt install linux-image-6.4.7-amd64-desktop-hwe linux-headers-6.4.7-amd64-desktop-hwe

Reply View the author
安洛
deepin
2023-08-18 04:12
#9
兆兆嘟嘟嘟

但是我从6.4内核进入系统后还能用xdroid。

那就别管了。

这个错误我记得xdroid反馈群里面也提过几次,确实是xdroid的问题。如果你有兴趣也可以去再提一次,xdroid官网就有他们的qq群号。

Reply View the author
安洛
deepin
2023-08-18 04:12
#10
兆兆嘟嘟嘟

我就是直接运行这个命令安装的,为什么会仍未被配置?

sudo apt install linux-image-6.4.7-amd64-desktop-hwe linux-headers-6.4.7-amd64-desktop-hwe

如果你想要对这个问题追根究底那可以去了解一下dkms是什么。

Reply View the author
北京麟卓
deepin
2023-10-20 02:36
#11

这个警告是我们的锅,新版本会解决的

Reply View the author
兆兆嘟嘟嘟
deepin
2023-10-29 19:58
#12
北京麟卓

这个警告是我们的锅,新版本会解决的

感谢。

Reply View the author