Kernel apt problems 6.8.12-8-pve to 6.8.12-9-pve

cpbee

New Member
Mar 8, 2025
8
1
3
Dear all, I have (had) a smoothly running installation. By accident I overread that the there was a suggested kernel update from 6.8.12-8-pve to 6.8.12-9-pve. After this everything went south ... and I seem not be able to properly resolve this issue (see below).

The most disturbing thing is - I do not even use kernel 6.8.12-8 I am on 6.11.11-1-pve and pinned this kernel. I left the 6.8.12 there exactly for reasons NOT to mess with update issues.

Since I am on zfs I would update the kernel entries with proxmox-boot-tool refresh (But as I said I do not want to update any kernel). I just want to resolve this errors?

Removing 6.8.12-9 does not seem to work and reinstalling 6.8.12-8 neither? As I said, I could bite my a** for this since there was absolutely no need to go into that rabbit hole.

Thanks for your help here.


Code:
Manually selected kernels:
None.

Automatically selected kernels:
6.11.11-1-pve
6.8.12-9-pve

Pinned kernel:
6.11.11-1-pve

The strange thing is that it seems to be mixing


Code:
Removing proxmox-kernel-6.8.12-8-pve-signed (6.8.12-8) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.8.12-8-pve /boot/vml
inuz-6.8.12-8-pve
update-initramfs: Deleting /boot/initrd.img-6.8.12-8-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 6.8.12-8-pve /boo
t/vmlinuz-6.8.12-8-pve
run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 6.8.12-8-pve /boot/vml
inuz-6.8.12-8-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespa
ce..
Copying and configuring kernels on /dev/disk/by-uuid/6D1A-EE45
    Copying kernel and creating boot-entry for 6.11.11-1-pve
    Copying kernel and creating boot-entry for 6.8.12-9-pve
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 6.8.12-8-pve /boot/vmli
nuz-6.8.12-8-pve
Generating grub configuration file ...
/usr/sbin/grub-probe: error: unknown filesystem.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/proxmox-kernel-6.8.
12-8-pve-signed.postrm line 15.
dpkg: error processing package proxmox-kernel-6.8.12-8-pve-signed (--remove):
 installed proxmox-kernel-6.8.12-8-pve-signed package post-removal script subpro
cess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 proxmox-kernel-6.8.12-8-pve-signed
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Reconfiguring the kernel will always end in:

Code:
apt reinstall proxmox-kernel-6.8.12-9-pve
proxmox-kernel-6.8.12-9-pve is not currently installed, so it will not be reinstalled
proxmox-kernel-6.8.12-9-pve is not currently installed, so it will not be reinstalled
The following partially installed packages will be configured:
  grub-efi-amd64 proxmox-kernel-6.8 proxmox-kernel-6.8.12-9-pve-signed
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/103 MB of archives. After unpacking 0 B will be used.
Setting up proxmox-kernel-6.8.12-9-pve-signed (6.8.12-9) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
update-initramfs: Generating /boot/initrd.img-6.8.12-9-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/6D1A-EE45
    Copying kernel and creating boot-entry for 6.11.11-1-pve
    Copying kernel and creating boot-entry for 6.8.12-9-pve
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/6D1A-EE45
    Copying kernel and creating boot-entry for 6.11.11-1-pve
    Copying kernel and creating boot-entry for 6.8.12-9-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
Generating grub configuration file ...
/usr/sbin/grub-probe: error: unknown filesystem.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.8.12-9-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.8.12-9-pve-signed (--configure):
 installed proxmox-kernel-6.8.12-9-pve-signed package post-installation script subprocess returned error exit status 2
Setting up grub-efi-amd64 (2.06-13+pmx6) ...
Generating grub configuration file ...
/usr/sbin/grub-probe: error: unknown filesystem.
dpkg: error processing package grub-efi-amd64 (--configure):
 installed grub-efi-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of proxmox-kernel-6.8:
 proxmox-kernel-6.8 depends on proxmox-kernel-6.8.12-9-pve-signed | proxmox-kernel-6.8.12-9-pve; however:
  Package proxmox-kernel-6.8.12-9-pve-signed is not configured yet.
  Package proxmox-kernel-6.8.12-9-pve is not installed.
  Package proxmox-kernel-6.8.12-9-pve-signed which provides proxmox-kernel-6.8.12-9-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.8 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for shim-signed:amd64 (1.44+pmx1+15.8-1+pmx1) ...
Errors were encountered while processing:
 proxmox-kernel-6.8.12-9-pve-signed
 grub-efi-amd64
 proxmox-kernel-6.8
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up proxmox-kernel-6.8.12-9-pve-signed (6.8.12-9) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
update-initramfs: Generating /boot/initrd.img-6.8.12-9-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/6D1A-EE45
    Copying kernel and creating boot-entry for 6.11.11-1-pve
    Copying kernel and creating boot-entry for 6.8.12-9-pve
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/6D1A-EE45
    Copying kernel and creating boot-entry for 6.11.11-1-pve
    Copying kernel and creating boot-entry for 6.8.12-9-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
Generating grub configuration file ...
/usr/sbin/grub-probe: error: unknown filesystem.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.8.12-9-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.8.12-9-pve-signed (--configure):
 installed proxmox-kernel-6.8.12-9-pve-signed package post-installation script subprocess returned error exit status 2
Setting up grub-efi-amd64 (2.06-13+pmx6) ...
Generating grub configuration file ...
/usr/sbin/grub-probe: error: unknown filesystem.
dpkg: error processing package grub-efi-amd64 (--configure):
 installed grub-efi-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of proxmox-kernel-6.8:
 proxmox-kernel-6.8 depends on proxmox-kernel-6.8.12-9-pve-signed | proxmox-kernel-6.8.12-9-pve; however:
  Package proxmox-kernel-6.8.12-9-pve-signed is not configured yet.
  Package proxmox-kernel-6.8.12-9-pve is not installed.
  Package proxmox-kernel-6.8.12-9-pve-signed which provides proxmox-kernel-6.8.12-9-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.8 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for shim-signed:amd64 (1.44+pmx1+15.8-1+pmx1) ...
Errors were encountered while processing:
 proxmox-kernel-6.8.12-9-pve-signed
 grub-efi-amd64
 proxmox-kernel-6.8
 
Ok, maybe the whole Proxmox Community is going to rip of my head ... but since I got stuck in this indefinite update loop the only thing that helped to get rid of the culprit wrapper packages -

Code:
dpkg --purge --force-all proxmox-kernel-6.8.12-8-pve-signed proxmox-kernel-6.8.12-9-pve proxmox-kernel-6.8

Proxmox is then heavily complaining when trying to do apt --fix-broken install and wants to either deinstall the "ve" package (no!) or reinstall the broken kernel packages 6.8.12-8 & 6.8.12-9 (back to square one, repeat).

So, this is really dirty but worked at the end ... Is this the right way? Hell no. But it worked and I got rid of my non-functional system (for the moment - Franken Debian?). I will worry about the rest if I am going to update the system for real.

Code:
mkdir -p ~/proxmox-dummy/{proxmox-kernel-6.8,proxmox-default-kernel}/DEBIAN

cat > ~/proxmox-dummy/proxmox-kernel-6.8/DEBIAN/control <<EOF
Package: proxmox-kernel-6.8
Version: 6.8.99-dummy
Architecture: all
Maintainer: Admin <admin@localhost>
Description: Dummy package to satisfy proxmox-kernel-6.8 dependency
EOF

cat > ~/proxmox-dummy/proxmox-default-kernel/DEBIAN/control <<EOF
Package: proxmox-default-kernel
Version: 1.1.0-dummy
Architecture: all
Maintainer: Admin <admin@localhost>
Description: Dummy package to satisfy proxmox-default-kernel dependency
EOF

dpkg-deb --build ~/proxmox-dummy/proxmox-kernel-6.8
dpkg-deb --build ~/proxmox-dummy/proxmox-default-kernel

sudo dpkg -i ~/proxmox-dummy/proxmox-kernel-6.8.deb
sudo dpkg -i ~/proxmox-dummy/proxmox-default-kernel.deb

sudo apt --fix-broken install
sudo apt-mark hold proxmox-kernel-6.8 proxmox-default-kernel

I would say "Solved and Case Closed"
 
Last edited: