[Seek Help] 理软件包 linux-image-5.15.77-amd64-desktop (--configure)时出错
Tofloor
poster avatar
whoami
deepin
2023-06-30 17:40
Author

RTRT

正在设置 linux-image-5.15.77-amd64-desktop (5.15.77-amd64-desktop-2) ...
Error!  The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
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.
setupcon is missing. Please install the 'console-setup' package.
I: The initramfs will attempt to resume from /dev/nvme0n1p6
I: (UUID=b7c076d0-8e7a-49a4-942e-015feefac057)
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.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
fix systemd/logind config
get rootb uuid error: failed to get "rootb" uuid
正在生成 grub 配置文件 ...
找到主题:/boot/grub/themes/deepin-fallback/theme.txt
Found background image: /boot/grub/themes/deepin-fallback/background.jpg
找到 Linux 镜像:/boot/vmlinuz-5.15.77-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-5.15.77-amd64-desktop
找到 Linux 镜像:/boot/vmlinuz-5.15.45-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-5.15.45-amd64-desktop
找到 Linux 镜像:/boot/vmlinuz-5.3.0-42-generic
找到 initrd 镜像:/boot/initrd.img-5.3.0-42-generic
Adding boot menu entry for EFI firmware configuration
完成
dpkg: 处理软件包 linux-image-5.15.77-amd64-desktop (--configure)时出错:
 已安装 linux-image-5.15.77-amd64-desktop 软件包 post-installation 脚本 子进程返回错误状态 1
在处理时有错误发生:
 linux-image-5.15.77-amd64-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reply Favorite View the author
All Replies
2 / 2
To page
whoami
deepin
2023-06-30 19:49
#21
dkms status
aufs, 4.19+20190211: added
bcmwl, 6.30.223.275, 5.15.45-amd64-desktop, x86_64: installed
bcmwl, 6.30.223.275, 5.15.77-amd64-desktop, x86_64: installed
bcmwl, 6.30.223.275, 5.3.0-3-amd64, x86_64: installed
deepin-anything, 0.0, 5.15.45-amd64-desktop, x86_64: installed
deepin-anything, 0.0, 5.15.77-amd64-desktop, x86_64: installed
deepin-anything, 0.0, 5.3.0-3-amd64, x86_64: installed
huawei-wmi, 3.2, 5.15.45-amd64-desktop, x86_64: installed (original_module exists)
huawei-wmi, 3.2, 5.15.77-amd64-desktop, x86_64: installed (original_module exists)
huawei-wmi, 3.2, 5.3.0-3-amd64, x86_64: installed
nvidia-current, 510.73.08, 5.15.45-amd64-desktop, x86_64: installed
nvidia-current, 510.73.08, 5.15.77-amd64-desktop, x86_64: installed
nvidia-current, 510.73.08, 5.3.0-3-amd64, x86_64: installed
rtw89, 1.0.3, 5.15.45-amd64-desktop, x86_64: installed
rtw89, 1.0.3, 5.15.77-amd64-desktop, x86_64: installed

从这里能看出哪个dkms有问题吗

Reply View the author
whoami
deepin
2023-06-30 22:42
#22
gfdgd_xi

joy 我是直接在 /var/lib/dpkg/info/linux-image-5.15.77-amd64-desktop.postinst 加一行 exit 强制跳过 postinst 的

暂时也这么解决了, 话说这应该算是官方该修复的bug吧

Reply View the author
gfdgd_xi
deepin
Ecological co-builder
2023-07-04 05:09
#23
whoami

暂时也这么解决了, 话说这应该算是官方该修复的bug吧

嗯,等官方处理吧

Reply View the author
铁山老道孔乙己
deepin
2023-07-10 17:04
#24
ThinKinG

内核编译 dkms时报错了,亲!你换个 5.18.17内核试下吧,15的内核很久没动了,可能是新的包编译环境和15不兼容

我也遇到这样的问题,安装 5.18.17 内核无法启动。提示无法识别 suvol 参数,应该是不支持 btrfs 文件系统。

Reply View the author
铁山老道孔乙己
deepin
2023-07-10 17:07
#25
gfdgd_xi

joy 我是直接在 /var/lib/dpkg/info/linux-image-5.15.77-amd64-desktop.postinst 加一行 exit 强制跳过 postinst 的

/var/lib/dpkg/info/linux-image-5.15.77-amd64-desktop.postinst 文件内容如下:

#!/bin/sh

set -e

# Pass maintainer script parameters to hook scripts
export DEB_MAINT_PARAMS="$*"

# Tell initramfs builder whether it's wanted
export INITRD=Yes

test -d /etc/kernel/postinst.d && run-parts --arg="5.15.77-amd64-desktop" --arg="/boot/vmlinuz-5.15.77-amd64-desktop" /etc/kernel/postinst.d
exit 0

你是在哪里加了个 exit ?

Reply View the author
xxNull
deepin
2023-10-13 06:21
#26

遇到了同样的问题,把additional-base-lib卸载掉就可以了。看上去是这个包造成/usr/share/initramfs-tools/hooks/live返回失败。

因为additional-base-lib提供了一些文件,比如libnss_files.so.2跟系统自带的有冲突。

Reply View the author
2 / 2
To page