[Kernel/Drive] Deepin V23 内核6.4.7安装错误信息
Tofloor
poster avatar
deepinuser17
deepin
2023-08-12 13:31
Author

系统信息:Deepin V23 Beta. 8/11更新已经安装。

重复步骤: 运行命令: sudo apt install linux-image-6.4.7-amd64-desktop-hwe linux-headers-6.4.7-amd64-desktop-
hwe

预期的结果: 内核6.4.7安装完成,没有任何错误信息。

实际结果: 内核6.4.7安装可以完成, 但是出现错误信息。 无法确定是否内核安装全部完成。

出错信息:

$ sudo apt install linux-image-6.4.7-amd64-desktop-hwe linux-headers-6.4.7-amd64-desktop-
hwe
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  linux-headers-6.4.7-amd64-desktop-hwe linux-image-6.4.7-amd64-desktop-hwe
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 87.7 MB of archives.
After this operation, 477 MB of additional disk space will be used.
Get:1 https://proposed-packages.deepin.com/beige-testing unstable/main amd64 linux-headers-6.4.7-amd64-desktop
-hwe amd64 6.4.7-1 [9,215 kB]
Get:2 https://proposed-packages.deepin.com/beige-testing unstable/main amd64 linux-image-6.4.7-amd64-desktop-h
we amd64 6.4.7-1 [78.5 MB]
Fetched 87.7 MB in 18s (4,770 kB/s)                                                                      
Selecting previously unselected package linux-headers-6.4.7-amd64-desktop-hwe.
(Reading database ... 303902 files and directories currently installed.)
Preparing to unpack .../linux-headers-6.4.7-amd64-desktop-hwe_6.4.7-1_amd64.deb ...
Unpacking linux-headers-6.4.7-amd64-desktop-hwe (6.4.7-1) ...
Selecting previously unselected package linux-image-6.4.7-amd64-desktop-hwe.
Preparing to unpack .../linux-image-6.4.7-amd64-desktop-hwe_6.4.7-1_amd64.deb ...
Unpacking linux-image-6.4.7-amd64-desktop-hwe (6.4.7-1) ...
Setting up 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-am
d64-desktop-hwe/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.4.7-amd64-desktop-hwe -C /lib/modules/6.4.7-amd64-desktop-hwe/build KBUILD_EXTMOD=/va
r/lib/dkms/deepin-anything/0.0/build modules...
Signing module /var/lib/dkms/deepin-anything/0.0/build/vfs_monitor.ko
Cleaning build area...

vfs_monitor.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.4.7-amd64-desktop-hwe/updates//
depmod...
.
update-initramfs: Generating /boot/initrd.img-6.4.7-amd64-desktop-hwe
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=5cd27534-f8d0-46c9-8842-c0fa9e06da1f)
I: Set the RESUME variable to override this.
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 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.15.45-amd64-desktop
Found initrd image: /boot/initrd.img-5.15.45-amd64-desktop
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
Setting up linux-headers-6.4.7-amd64-desktop-hwe (6.4.7-1) ...
Setting up 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
Binary /lib/modules/6.1.32-amd64-desktop-hwe/build/scripts/sign-file not found, modules won't be signed
Error! Your kernel headers for kernel 6.1.32-amd64-desktop-hwe cannot be found at /lib/modules/6.1.32-amd64-de
sktop-hwe/build or /lib/modules/6.1.32-amd64-desktop-hwe/source.
Please install the linux-headers-6.1.32-amd64-desktop-hwe package or use the --kernelsourcedir option to tell 
DKMS where it's located.
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=5cd27534-f8d0-46c9-8842-c0fa9e06da1f)
I: Set the RESUME variable to override this.
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 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.15.45-amd64-desktop
Found initrd image: /boot/initrd.img-5.15.45-amd64-desktop
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: error processing package linux-image-6.1.32-amd64-desktop-hwe (--configure):
 installed linux-image-6.1.32-amd64-desktop-hwe package post-installation script subprocess returned error exi
t status 1
dpkg: dependency problems prevent configuration of linux-image-deepin-hwe-amd64:
 linux-image-deepin-hwe-amd64 depends on linux-image-6.1.32-amd64-desktop-hwe; however:
  Package linux-image-6.1.32-amd64-desktop-hwe is not configured yet.

dpkg: error processing package linux-image-deepin-hwe-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 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
jjcui8595
deepin
2023-08-12 15:02
#1

重启系统看看内核版本。你发的提示信息看,好像是6.4内核正常安装,6.1内核没有完整安装

Reply View the author
青稚
Moderator
2023-08-12 15:29
#2
jjcui8595

重启系统看看内核版本。你发的提示信息看,好像是6.4内核正常安装,6.1内核没有完整安装

如果没有完全安装输入:sudo apt install linux-image-6.1.32-amd64-desktop-hwe

Reply View the author
182******08
deepin
2023-08-12 15:33
#3

我遇到过同样的问题。

搜索 E: Sub-process /usr/bin/dpkg returned an error code (1)

有可能是/boot空间不足的问题。

我参考 https://bbs.deepin.org/post/260648,使用Grub Customizer 程序删除多余启动项之后可以正常更新。

但是现在/boot空间又慢了。

正在寻找删除/boot/snapshot下快照的方法。

Reply View the author
deepinuser17
deepin
2023-08-13 18:14
#4

我的机器上没有单独的/boot分区。

~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            7.7G     0  7.7G   0% /dev
tmpfs           1.6G  3.0M  1.6G   1% /run
/dev/sda3       213G   13G  190G   7% /
tmpfs           7.8G     0  7.8G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.6G   72K  1.6G   1% /run/user/1000

安装完内核6.4.7以后, 可以正常启动内核6.4.7. 主要是安装时出现的错误信息,有疑问。

Reply View the author