Problems after 6 to 7

CCWTech

Active Member
Mar 3, 2020
81
8
28
54
Code:
Calculating upgrade... Done
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 initramfs-tools (0.140) ...
update-initramfs: deferring update (trigger activated)
Setting up pve-kernel-5.15.108-1-pve (5.15.108-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.15.108-1-pve /boot/vmlinuz-5.15.108-1-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.15.108-1-pve /boot/vmlinuz-5.15.108-1-pve
update-initramfs: Generating /boot/initrd.img-5.15.108-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
E: 'zz-pve-efiboot' is not a valid hook script name.
run-parts: /etc/initramfs/post-update.d//pve-efiboot-sync exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-5.15.108-1-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.15.108-1-pve (--configure):
 installed pve-kernel-5.15.108-1-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of pve-kernel-5.15:
 pve-kernel-5.15 depends on pve-kernel-5.15.108-1-pve; however:
  Package pve-kernel-5.15.108-1-pve is not configured yet.

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

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.15.108-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
E: 'zz-pve-efiboot' is not a valid hook script name.
run-parts: /etc/initramfs/post-update.d//pve-efiboot-sync exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 pve-kernel-5.15.108-1-pve
 pve-kernel-5.15
 proxmox-ve
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
I decided to make the leap from Debian 11 to 12 and Proxmox 7 to 8 to see if it would clear things up... Still issues:

root@nah-prox:/etc/apt/sources.list.d# apt --fix-broken install
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 164834 (apt-get)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Setting up pve-kernel-5.15.108-1-pve (5.15.108-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.15.108-1-pve /boot/vmlinuz-5.15.108-1-pve
update-initramfs: Generating /boot/initrd.img-5.15.108-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
E: 'zz-pve-efiboot' is not a valid hook script name.
run-parts: /etc/initramfs/post-update.d//pve-efiboot-sync exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-5.15.108-1-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.15.108-1-pve (--configure):
installed pve-kernel-5.15.108-1-pve package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-6.2.16-6-pve (6.2.16-7) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.2.16-6-pve /boot/vmlinuz-6.2.16-6-pve
update-initramfs: Generating /boot/initrd.img-6.2.16-6-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
E: 'zz-pve-efiboot' is not a valid hook script name.
run-parts: /etc/initramfs/post-update.d//pve-efiboot-sync exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.2.16-6-pve.postinst line 20.
dpkg: error processing package proxmox-kernel-6.2.16-6-pve (--configure):
installed proxmox-kernel-6.2.16-6-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.2:
proxmox-kernel-6.2 depends on proxmox-kernel-6.2.16-6-pve; however:
Package proxmox-kernel-6.2.16-6-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
proxmox-default-kernel depends on proxmox-kernel-6.2; however:
Package proxmox-kernel-6.2 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
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.2.16-6-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
E: 'zz-pve-efiboot' is not a valid hook script name.
run-parts: /etc/initramfs/post-update.d//pve-efiboot-sync exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
pve-kernel-5.15.108-1-pve
proxmox-kernel-6.2.16-6-pve
proxmox-kernel-6.2
proxmox-default-kernel
proxmox-ve
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Everything is running okay, just getting these errors. It seems as if it's trying to process OLD dependencies. I could be wrong...
 
Hello, what kernel are you currently using? You can check with the uname -a command. Make sure you run apt update; apt dist-upgrade and apt autoremove to delete unused packages.
 
Hello, what kernel are you currently using? You can check with the uname -a command. Make sure you run apt update; apt dist-upgrade and apt autoremove to delete unused packages.

Code:
Linux nah-prox 6.2.16-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.2.16-7 (2023-08-01T11:23Z) x86_64 GNU/Linux

I have tried all of these and get the same results.
Make sure you run apt update; apt dist-upgrade and apt autoremove to delete unused packages.
 
Code:
root@nah-prox:/usr/local/mesh# apt update
Get:1 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Hit:2 http://repo.netdata.cloud/repos/edge/debian bookworm/ InRelease     
Hit:3 http://repo.netdata.cloud/repos/repoconfig/debian bookworm/ InRelease
Hit:4 http://ftp.debian.org/debian bookworm InRelease       
Get:5 http://ftp.debian.org/debian bookworm-updates InRelease [52.1 kB]
Hit:6 http://download.proxmox.com/debian/pve bookworm InRelease     
Fetched 100 kB in 1s (135 kB/s)                         
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@nah-prox:/usr/local/mesh# apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 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 initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Setting up pve-kernel-5.15.108-1-pve (5.15.108-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.15.108-1-pve /boot/vmlinuz-5.15.108-1-pve
update-initramfs: Generating /boot/initrd.img-5.15.108-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
E: 'zz-pve-efiboot' is not a valid hook script name.
run-parts: /etc/initramfs/post-update.d//pve-efiboot-sync exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-5.15.108-1-pve.postinst line 19.
dpkg: error processing package pve-kernel-5.15.108-1-pve (--configure):
 installed pve-kernel-5.15.108-1-pve package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-6.2.16-6-pve (6.2.16-7) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.2.16-6-pve /boot/vmlinuz-6.2.16-6-pve
update-initramfs: Generating /boot/initrd.img-6.2.16-6-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
E: 'zz-pve-efiboot' is not a valid hook script name.
run-parts: /etc/initramfs/post-update.d//pve-efiboot-sync exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.2.16-6-pve.postinst line 20.
dpkg: error processing package proxmox-kernel-6.2.16-6-pve (--configure):
 installed proxmox-kernel-6.2.16-6-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.2:
 proxmox-kernel-6.2 depends on proxmox-kernel-6.2.16-6-pve; however:
  Package proxmox-kernel-6.2.16-6-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
 proxmox-default-kernel depends on proxmox-kernel-6.2; however:
  Package proxmox-kernel-6.2 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
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.2.16-6-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
E: 'zz-pve-efiboot' is not a valid hook script name.
run-parts: /etc/initramfs/post-update.d//pve-efiboot-sync exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 pve-kernel-5.15.108-1-pve
 proxmox-kernel-6.2.16-6-pve
 proxmox-kernel-6.2
 proxmox-default-kernel
 proxmox-ve
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Hi!

This is just the "normal" proxmox upgrade results :D
Do you upgraded from deb11 to deb12?

I think some packages still in "deb11" and conflicts, you can fix it:

Code:
Query the deb11 packages from the system:
$> dpkg --list | grep -i deb11 > packages.old

Check the "packages.old" file, if there are some you can delete it manually, if there many you can use this:
Code:
WARNING - Carefully check the list, what wants to remove!

$> apt purge `dpkg --list | grep .*deb11 | awk '{print $2}'`

The above process when finished, after you can try the "upgrade" again:
Code:
$> apt-get clean all
$> apt-get autoclean
$> apt-get update
$> apt-get upgrade

If there is a problem ( usually yes :D ), after you need the check the error last part
( example is from yours )
Code:
Errors were encountered while processing:
 pve-kernel-5.15.108-1-pve
 proxmox-kernel-6.2.16-6-pve
 proxmox-kernel-6.2
 proxmox-default-kernel
 proxmox-ve
 initramfs-tools

No problem, you can fix this too. Go to the following directory:
Code:
$> cd /var/lib/dpkg/info
In this directory you can find the same files as the error message

Code:
 pve-kernel-5.15.108-1-pve-xxx
 proxmox-kernel-6.2.16-6-pve-xxx
 proxmox-kernel-6.2-xxx
 proxmox-default-kernel-xxx
 proxmox-ve-xxxx
 initramfs-tools-xxxx

Move this files to another directory, and run the upgrade again:
Code:
$> mkdir /root/dpkg

$> cd /var/lib/dpkg/info
$> mv pve-kernel-5.15.108-1-pve.* /root/dpkg/
$> mv proxmox-kernel-6.2.16-6-pve.* /root/dpkg/
$> mv proxmox-kernel-6.2.* /root/dpkg/
$> mv proxmox-default-kernel.* /root/dpkg/
$> mv proxmox-ve.* /root/dpkg/
$> mv initramfs-tools.* /root/dpkg/

$> apt-get clean all
$> apt-get autoclean
$> apt-get update
$> apt-get upgrade

Now the process will finish without error, the above files will be recreated under the "/var/lib/dpkg/info"
If there is a warning after the process like:
Code:
dpkg: warning: files list file for package 'PACKAGE' missing, assuming package has no files currently installed

You can fix that:
Code:
$> apt install --reinstall PACKAGE
 
  • Like
Reactions: rolambert
Hey @emunt6, @CCWTech Thanks question and for the fix! The removal (move) worked for me, I had the same issue.

Can you please explain the logic behind this so I can learn why these steps were taken:

1.] Why were the files removed from that directory.

2.] Why did the removal of the files not break the system when removed.

3.] How did the system know that the files were need/ not needed when the update was called.

Cheers!

I have had dependency issues before but would have been scared to try the above steps since I do not know the logic behind the why. thanks again
 
Esto lo resolvió... Espero que le sirva a alguien más:
dpkg --purge ayudante del núcleo pve
Mil gracias por tu gran aporte, me funciono al 100%,tenia el mismo problema al realizar la actualización de la versión 6 a la 8,no me dejaba actualizar ni tampoco instalar aplicaciones nuevas, thanks
 

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!