This solved the issue: # mv /etc/kernel/postinst.d/dkms /etc/kernel/postinst.d/dkms.orig # LC_ALL=C dpkg -i /home/dileks/src/linux/linux-image-6.2.0-rc4-1-amd64-clang15-kcfi_6.2.0~rc4-1~unstable+dileks1_amd64.deb (Reading database ... 426963 files and directories currently installed.) Preparing to unpack .../linux-image-6.2.0-rc4-1-amd64-clang15-kcfi_6.2.0~rc4-1~unstable+dileks1_amd64.deb ... Unpacking linux-image-6.2.0-rc4-1-amd64-clang15-kcfi (6.2.0~rc4-1~unstable+dileks1) over (6.2.0~rc4-1~unstable+dileks1) ... Setting up linux-image-6.2.0-rc4-1-amd64-clang15-kcfi (6.2.0~rc4-1~unstable+dileks1) ... update-initramfs: Generating /boot/initrd.img-6.2.0-rc4-1-amd64-clang15-kcfi Generating grub configuration file ... Found background image: /usr/share/images/desktop-base/desktop-grub.png Found linux image: /boot/vmlinuz-6.2.0-rc4-1-amd64-clang15-kcfi Found initrd image: /boot/initrd.img-6.2.0-rc4-1-amd64-clang15-kcfi Found linux image: /boot/vmlinuz-6.1.0-1-amd64 Found initrd image: /boot/initrd.img-6.1.0-1-amd64 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 Recovery Environment on /dev/sdb3 done # dpkg -l | grep linux-image | awk '/^(ii)/ {print $1 " " $2 " " $3}' | column -t ii linux-image-6.1.0-1-amd64 6.1.4-1 ii linux-image-6.2.0-rc4-1-amd64-clang15-kcfi 6.2.0~rc4-1~unstable+dileks1 ii linux-image-amd64 -Sedat-