[Suggestions for Improvement] /var/lib/dkms error Resolved
Tofloor
poster avatar
trawg
deepin
2024-02-05 18:58
Author

EDIT - I was wrong, I have Community(Beta3)(23) Edition.

Deepin v23 Alpha 2. was giving errors.

dee@BRUTUS:~$ sudo apt update && sudo apt full-upgrade
[sudo] password for dee: 
Verification successful
Hit:1 https://community-packages.deepin.com/beige beige InRelease                                      
Hit:2 https://community-packages.deepin.com/driver-23 driver InRelease                                 
Hit:3 https://app-store-files.uniontech.com/240205172323365/appstorev23 beige InRelease
Reading package lists... Done             
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  org.deepin.downloader
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 2,963 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://com-store-packages.uniontech.com/appstorev23 beige/appstore amd64 org.deepin.downloader amd64 5.3.75-1 [2,963 kB]
Fetched 2,963 kB in 4s (782 kB/s)            
(Reading database ... 284524 files and directories currently installed.)
Preparing to unpack .../org.deepin.downloader_5.3.75-1_amd64.deb ...
Unpacking org.deepin.downloader (5.3.75-1) over (5.3.70) ...
Setting up org.deepin.downloader (5.3.75-1) ...
Setting up linux-image-6.1.32-amd64-desktop-hwe (23.01.00.20-1) ...
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 /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.
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/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/nvme1n1p2
I: (UUID=fd8d4662-f2b3-4ca1-863a-dfe5784b90a9)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dns.
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/cat'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/cpio'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/dd'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/dmesg'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/false'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/gunzip'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/kill'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/ln'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/ls'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/mkdir'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/mkfifo'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/mknod'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/mount'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/mv'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/nuke'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/readlink'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/resume'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/sh'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/sleep'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/sync'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/true'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/umount'
cp: not replacing '/var/tmp/mkinitramfs_nxsndu/bin/uname'
fix systemd/logind config
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-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.
Found Windows Boot Manager on /dev/nvme1n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Found Debian GNU/Linux 12 (bookworm) on /dev/nvme1n1p7
/usr/sbin/grub-probe: error: unknown filesystem.
Found Manjaro Linux (23.1.3) on /dev/nvme1n1p8
/usr/sbin/grub-probe: error: unknown filesystem.
Adding boot menu entry for UEFI Firmware Settings ...
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 exit 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
Processing triggers for bamfdaemon (0.5.4-deepin1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.26-deepin) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.12.0-1) ...
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)
dee@BRUTUS:~$ 

I deleted folders /var/lib/dkms/rtl8852be and /var/lib/dkms/rtle8852au (which I hope I don't need as I am hard-wired) and then configured and update-initramfs was successful. Sorry, I'm still learning and I'm not sure if this is a bug I should report or if it's something I caused. I believe my problem is resolved by deleting those two folders, and it seems the dkms.conf file in them conflicts with new kernel to me.

I love DeepinOS!!! Have a nice day.

Reply Favorite View the author
All Replies
trawg
deepin
2024-02-05 19:18
#1

I apologize, it appears I have Community(Beta3)(23). I thought I installed Alpha2, but that's okay.

DeepinBeta3.png

Reply View the author
trawg
deepin
2024-02-13 04:20
#2

In hindsight, this was a big blunder on my part. I did not fully understand or respect sudo apt full-upgrade and should have only been doing sudo apt upgrade. This is what caused my Alpha2 to upgrade to Beta3, and it's surprising it did so with only minor, easily repairable errors. Nonetheless, I hope that info about the two dkms.conf files which conflict with the new kernel helps improve Deepin in some way.

Have a nice day!

Reply View the author