[SOLVED] cannot upgrade to kernel 6.5.11-7-pve

FoodFighter

New Member
Dec 9, 2023
10
3
3
I wanted to upgrade my system and get errors when upgrading the kernel:

Code:
root@proxmox:~# apt upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-6.1.0-10-amd64 linux-headers-6.1.0-10-common linux-headers-6.1.0-11-amd64 linux-headers-6.1.0-11-common
  linux-headers-6.1.0-13-amd64 linux-headers-6.1.0-13-common proxmox-headers-6.2.16-10-pve proxmox-headers-6.2.16-15-pve
  proxmox-headers-6.2.16-6-pve proxmox-kernel-6.2.16-10-pve proxmox-kernel-6.2.16-6-pve pve-kernel-6.2.16-4-pve
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up proxmox-kernel-6.5.11-7-pve-signed (6.5.11-7) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.5.11-7-pve /boot/vmlinuz-6.5.11-7-pve
dkms: running auto installation service for kernel 6.5.11-7-pve.
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /lib/modules/6.5.11-7-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.5.11-7-pve -C /lib/modules/6.5.11-7-pve/build M=/var/lib/dkms/gasket/1.0/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.5.11-7-pve (x86_64)
Consult /var/lib/dkms/gasket/1.0/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.11-7-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.5.11-7-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.11-7-pve-signed (--configure):
 installed proxmox-kernel-6.5.11-7-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.5:
 proxmox-kernel-6.5 depends on proxmox-kernel-6.5.11-7-pve-signed | proxmox-kernel-6.5.11-7-pve; however:
  Package proxmox-kernel-6.5.11-7-pve-signed is not configured yet.
  Package proxmox-kernel-6.5.11-7-pve is not installed.
  Package proxmox-kernel-6.5.11-7-pve-signed which provides proxmox-kernel-6.5.11-7-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
 proxmox-default-kernel depends on proxmox-kernel-6.5; however:
  Package proxmox-kernel-6.5 is not configured yet.

dpkg: error processing package proxmox-default-kernel (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve:
 proxmox-ve depends on proxmox-default-kernel; however:
  Package proxmox-default-kernel is not configured yet.

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 proxmox-kernel-6.5.11-7-pve-signed
 proxmox-kernel-6.5
 proxmox-default-kernel
 proxmox-ve

just found that and that

so I tried to install grub-efi-amd64 what runs in the same error (grub-efi-amd64 seems already to be installed)

Code:
root@proxmox:~# apt install grub-efi-amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
grub-efi-amd64 is already the newest version (2.06-13+pmx1).
The following packages were automatically installed and are no longer required:
  linux-headers-6.1.0-10-amd64 linux-headers-6.1.0-10-common linux-headers-6.1.0-11-amd64 linux-headers-6.1.0-11-common
  linux-headers-6.1.0-13-amd64 linux-headers-6.1.0-13-common proxmox-headers-6.2.16-10-pve proxmox-headers-6.2.16-15-pve
  proxmox-headers-6.2.16-6-pve proxmox-kernel-6.2.16-10-pve proxmox-kernel-6.2.16-6-pve pve-kernel-6.2.16-4-pve
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up proxmox-kernel-6.5.11-7-pve-signed (6.5.11-7) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.5.11-7-pve /boot/vmlinuz-6.5.11-7-pve
dkms: running auto installation service for kernel 6.5.11-7-pve.
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /lib/modules/6.5.11-7-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.5.11-7-pve -C /lib/modules/6.5.11-7-pve/build M=/var/lib/dkms/gasket/1.0/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.5.11-7-pve (x86_64)
Consult /var/lib/dkms/gasket/1.0/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.11-7-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.5.11-7-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.11-7-pve-signed (--configure):
 installed proxmox-kernel-6.5.11-7-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.5:
 proxmox-kernel-6.5 depends on proxmox-kernel-6.5.11-7-pve-signed | proxmox-kernel-6.5.11-7-pve; however:
  Package proxmox-kernel-6.5.11-7-pve-signed is not configured yet.
  Package proxmox-kernel-6.5.11-7-pve is not installed.
  Package proxmox-kernel-6.5.11-7-pve-signed which provides proxmox-kernel-6.5.11-7-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
 proxmox-default-kernel depends on proxmox-kernel-6.5; however:
  Package proxmox-kernel-6.5 is not configured yet.

dpkg: error processing package proxmox-default-kernel (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve:
 proxmox-ve depends on proxmox-default-kernel; however:
  Package proxmox-default-kernel is not configured yet.

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 proxmox-kernel-6.5.11-7-pve-signed
 proxmox-kernel-6.5
 proxmox-default-kernel
 proxmox-ve

My System runs on a Futro S740 with an Realtek RTL8111G
There is no package like "r8168-dkms" installed.

So now when I reboot my machine it hangs up on boot while loading kernel.
It's noot possible to boot 6.5.11-7-pve (of course not, because it's not installed correctly)

What can I do to install kernel 6.5.11-7-pve?
Does anyone have any ideas?

Edit:
at the moment I'm running pve 8.1.3 with Kernel 6.2.16-20-pve
 
Last edited:
maybe this helps someone?

/var/lib/dkms/gasket/1.0/build/make.log:
Code:
DKMS make.log for gasket-1.0 for kernel 6.5.11-7-pve (x86_64)
Sat Dec  9 06:03:12 PM CET 2023
make: Entering directory '/usr/src/linux-headers-6.5.11-7-pve'
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_core.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_ioctl.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_page_table.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_interrupt.o
/var/lib/dkms/gasket/1.0/build/gasket_core.c: In function ‘gasket_register_device’:
/var/lib/dkms/gasket/1.0/build/gasket_core.c:1841:41: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=>
 1841 |                 class_create(driver_desc->module, driver_desc->name);
      |                              ~~~~~~~~~~~^~~~~~~~
      |                                         |
      |                                         struct module *
In file included from ./include/linux/device.h:31,
                 from ./include/linux/cdev.h:8,
                 from /var/lib/dkms/gasket/1.0/build/gasket_core.h:11,
                 from /var/lib/dkms/gasket/1.0/build/gasket_core.c:12:
./include/linux/device/class.h:230:54: note: expected ‘const char *’ but argument is of type ‘struct module *’
  230 | struct class * __must_check class_create(const char *name);
      |                                          ~~~~~~~~~~~~^~~~
/var/lib/dkms/gasket/1.0/build/gasket_core.c:1841:17: error: too many arguments to function ‘class_create’
 1841 |                 class_create(driver_desc->module, driver_desc->name);
      |                 ^~~~~~~~~~~~
./include/linux/device/class.h:230:29: note: declared here
  230 | struct class * __must_check class_create(const char *name);
      |                             ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:251: /var/lib/dkms/gasket/1.0/build/gasket_core.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-headers-6.5.11-7-pve/Makefile:2039: /var/lib/dkms/gasket/1.0/build] Error 2
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.5.11-7-pve'
 
Last edited:
hmpfs....found this while searching deeper:
https://forum.proxmox.com/threads/update-error-with-coral-tpu-drivers.136888/#post-608975
seems to be a problem with gasket / google coral
I don't have coral, and I got a similar issue with the new kernel not installing due to the r8168-dkms driver work around :(
Did you get yours to work?
How do you remove the failed kernel, or try to install it again?

I get
```
dkms: autoinstall for kernel: 6.5.11-7-pve failed!
```
 
Last edited:
I don't have coral, and I got a similar issue with the new kernel not installing due to the r8168-dkms driver work around :(
Did you get yours to work?
How do you remove the failed kernel, or try to install it again?

I get
```
dkms: autoinstall for kernel: 6.5.11-7-pve failed!
```
Hi,

yes, for me everything works now.
I just followed what LiloBzH wrote here

r8168 threads are here and here
maybe someone there can help

good luck :(
 
  • Like
Reactions: marcusone

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!