Good morning,
I recently upgrade my proxmox 8.x.x install to PVE 9.0.x using the update guidelines. Everything went well and the new system is up and running with one problem. When I try to do apt dist-upgrade apt fails on removing a non-existing historical kernel.
	
	
	
		
	
	
	
		
Output of proxmox-boot-tool:
	
	
	
		
apt --fix-broken install does not correct this error state.
This apt upgrade failure is keeping the new installation from updating correctly and I am unsure how to fix. Any help would be greatly appreciated.
I apologize in advance if my code snippets to not post correctly.
Mike
				
			I recently upgrade my proxmox 8.x.x install to PVE 9.0.x using the update guidelines. Everything went well and the new system is up and running with one problem. When I try to do apt dist-upgrade apt fails on removing a non-existing historical kernel.
		Code:
	
	root@pve:/# apt update
Hit:1 http://repository.netdata.cloud/repos/stable/debian trixie/ InRelease                                                   
Hit:2 http://deb.debian.org/debian trixie InRelease                                                                           
Hit:3 http://security.debian.org/debian-security trixie-security InRelease                                                     
Get:4 http://deb.debian.org/debian trixie-updates InRelease [47.1 kB]                                                         
Hit:5 http://repository.netdata.cloud/repos/repoconfig/debian trixie/ InRelease                                               
Hit:6 http://download.proxmox.com/debian/pve trixie InRelease                                                 
Hit:7 http://ftp.br.debian.org/debian trixie InRelease       
Fetched 47.1 kB in 1s (43.9 kB/s)
13 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@pve:/# apt dist-upgrade
Upgrading:                     
  libnss-systemd  librrd8t64    libsystemd-shared  libudev1   systemd           systemd-cryptsetup  udev
  libpam-systemd  librrds-perl  libsystemd0        rrdcached  systemd-boot-efi  systemd-sysv
REMOVING:
  proxmox-kernel-6.8.12-9-pve-signed
Summary:
  Upgrading: 13, Installing: 0, Removing: 1, Not Upgrading: 0
  3 not fully installed or removed.
  Download size: 0 B / 8645 kB
  Freed space: 577 MB
Continue? [Y/n]
	
		Code:
	
	Removing proxmox-kernel-6.8.12-9-pve-signed (6.8.12-9) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
update-initramfs: Deleting /boot/initrd.img-6.8.12-9-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 6.8.12-9-pve /boot/vmlinuz-6.8.12-9-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace..
No root= parameter in /etc/kernel/cmdline found!
run-parts: /etc/kernel/postrm.d/zz-proxmox-boot exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/proxmox-kernel-6.8.12-9-pve-signed.postrm line 15.
dpkg: error processing package proxmox-kernel-6.8.12-9-pve-signed (--remove):
 installed proxmox-kernel-6.8.12-9-pve-signed package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 proxmox-kernel-6.8.12-9-pve-signed
Processing was halted because there were too many errors.
Error: Sub-process /usr/bin/dpkg returned an error code (1)
	Output of proxmox-boot-tool:
		Code:
	
	root@pve:/# proxmox-boot-tool kernel list
Manually selected kernels:
None.
Automatically selected kernels:
6.14.11-1-pve
6.14.8-2-pve
	apt --fix-broken install does not correct this error state.
This apt upgrade failure is keeping the new installation from updating correctly and I am unsure how to fix. Any help would be greatly appreciated.
I apologize in advance if my code snippets to not post correctly.
Mike