Errors on upgrading to 6.5.0 kernel

Unfortunately, it throws some errors. Starting the 6.5.0 kernel results in kernel panic.

Can you please help me fix it?

Setting up linux-headers-6.5.0-3parrot1-amd64 (6.5.3-3parrot1) ...

/etc/kernel/header_postinst.d/dkms:

dkms: running auto installation service for kernel 6.5.0-3parrot1-amd64.

Deprecated feature: REMAKE_INITRD (/var/lib/dkms/mt7630e/2.1.0/source/dkms.conf)

Sign command: /lib/modules/6.5.0-3parrot1-amd64/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 KVER=6.5.0-3parrot1-amd64 KSRC=/lib/modules/6.5.0-3parrot1-amd64/build............(bad exit status: 2)

Error! Bad return status for module build on kernel: 6.5.0-3parrot1-amd64 (x86_64)

Consult /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20230101.f8ead57/build/make.log for more information.

Error! One or more modules failed to install during autoinstall.

Refer to previous errors for more information.

dkms: autoinstall for kernel: 6.5.0-3parrot1-amd64 failed!

run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11

Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.5.0-3parrot1-amd64.postinst line 11.

dpkg: error processing package linux-headers-6.5.0-3parrot1-amd64 (--configure):

installed linux-headers-6.5.0-3parrot1-amd64 package post-installation script subprocess returned error exit status 1

dpkg: dependency problems prevent configuration of linux-headers-amd64:

linux-headers-amd64 depends on linux-headers-6.5.0-3parrot1-amd64 ![😊|16x16](https://static.xx.fbcdn.net/images/emoji.php/v9/t7f/1/16/1f60a.png) 6.5.3-3parrot1); however:

Package linux-headers-6.5.0-3parrot1-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):

dependency problems - leaving unconfigured

Setting up linux-image-6.5.0-3parrot1-amd64 (6.5.3-3parrot1) ...

/etc/kernel/postinst.d/dkms:

dkms: running auto installation service for kernel 6.5.0-3parrot1-amd64.

Deprecated feature: REMAKE_INITRD (/var/lib/dkms/mt7630e/2.1.0/source/dkms.conf)

Sign command: /lib/modules/6.5.0-3parrot1-amd64/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 KVER=6.5.0-3parrot1-amd64 KSRC=/lib/modules/6.5.0-3parrot1-amd64/build............(bad exit status: 2)

Error! Bad return status for module build on kernel: 6.5.0-3parrot1-amd64 (x86_64)

Consult /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20230101.f8ead57/build/make.log for more information.

Error! One or more modules failed to install during autoinstall.

Refer to previous errors for more information.

dkms: autoinstall for kernel: 6.5.0-3parrot1-amd64 failed!

run-parts: /etc/kernel/postinst.d/dkms exited with return code 11

dpkg: error processing package linux-image-6.5.0-3parrot1-amd64 (--configure):

installed linux-image-6.5.0-3parrot1-amd64 package post-installation script subprocess returned error exit status 1

dpkg: dependency problems prevent configuration of linux-image-amd64:

linux-image-amd64 depends on linux-image-6.5.0-3parrot1-amd64 ![😊|16x16](https://static.xx.fbcdn.net/images/emoji.php/v9/t7f/1/16/1f60a.png) 6.5.3-3parrot1); however:

Package linux-image-6.5.0-3parrot1-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (--configure):

dependency problems - leaving unconfigured

Errors were encountered while processing:

linux-headers-6.5.0-3parrot1-amd64

linux-headers-amd64

linux-image-6.5.0-3parrot1-amd64

linux-image-amd64
1 Like

Deleted

linux-headers-6.5.0-3parrot1-amd64
linux-headers-amd64
linux-image-6.5.0-3parrot1-amd64
linux-image-amd64

then

#sudo update-initramfs -c -k 6.5.0-3parrot1-amd64
#sudo update-grub

and the problem is solved.

2 Likes

This worked for me using sudo apt purge Makes me wonder why the 6.5 kernel was installed in the first place.

Same thing happened for me.
Upgrade finished with error, kernel panic with kernel 6.5.0 after reboot.

Based on this thread, I ran these after booting with kernel 6.1.0:

#sudo apt purge linux-headers-6.5.0-3parrot1-common
#sudo update-initramfs -c -k 6.5.0-3parrot1-amd64
#sudo update-grub

This fixed it for me, now starting with kernel 6.5.0 works.

1 Like

j’ai essaye vos methode puis redemarer mais toujour le meme probleme
E: Sub-process /usr/bin/dpkg returned an error code (1)

je suis completement debutant help me please

thanks bro

Well, not entirely, as I still get the following warnings:

dpkg: warning: files list file for package 'linux-headers-6.5.0-3parrot1-amd64' missing; assuming package has no files currently ins
talled
dpkg: warning: files list file for package 'linux-headers-amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-image-amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-image-6.5.0-3parrot1-amd64' missing; assuming package has no files currently insta
lled

But at least it works.

It’s working fine for me ! Thanks

Did an dist upgrade using parrot-upgrade.
as it was finishing I noticed the linux kernel warnings mentioned here.
to avoid the same fate, I went to /boot and removed 6.5 (sudo rm *6.5* )
rebooted
grub still had 6.5 in its menu but I just selected the 6.1 kernel and it booted with no issues

checked a few possible ideas (available upon request :slight_smile: )
but came back and followed the suggestion here:

sudo update-initramfs -u
sudo update-grub
sudo systemctl reboot

6.5 kernel entry gone. booted with no issues

Thanks for the heads up about the kernel

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.