E: Sub-process /usr/bin/dpkg returned an error code (1)

devrimer

Member
Mar 19, 2022
15
7
8
Sofia
devrimer.co
Hello,

I am seeing this error when I try to update server. can someone help me to solve this issue ?

dpkg: error processing package proxmox-kernel-6.8 (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.8.8-2-pve
/etc/initramfs/post-update.d//proxmox-boot-sync: 10: /usr/sbin/proxmox-boot-tool: not found
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 127
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:
proxmox-kernel-6.8.8-2-pve-signed
proxmox-kernel-6.8
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Could you try doing a dist-upgrade?
I run this command: apt dist-upgrade

and this is the output:
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.
3 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 proxmox-kernel-6.8.8-2-pve-signed (6.8.8-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.8.8-2-pve /boot/vmlinuz-6.8.8-2-pve
update-initramfs: Generating /boot/initrd.img-6.8.8-2-pve
/etc/initramfs/post-update.d//proxmox-boot-sync: 10: /usr/sbin/proxmox-boot-tool: not found
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 127
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.8.8-2-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.8.8-2-pve-signed (--configure):
installed proxmox-kernel-6.8.8-2-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.8:
proxmox-kernel-6.8 depends on proxmox-kernel-6.8.8-2-pve-signed | proxmox-kernel-6.8.8-2-pve; however:
Package proxmox-kernel-6.8.8-2-pve-signed is not configured yet.
Package proxmox-kernel-6.8.8-2-pve is not installed.
Package proxmox-kernel-6.8.8-2-pve-signed which provides proxmox-kernel-6.8.8-2-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.8 (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.8.8-2-pve
/etc/initramfs/post-update.d//proxmox-boot-sync: 10: /usr/sbin/proxmox-boot-tool: not found
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 127
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:
proxmox-kernel-6.8.8-2-pve-signed
proxmox-kernel-6.8
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
you probably removed proxmox-ve at some point, please try reinstalling it..
 
  • Like
Reactions: devrimer
thank you for your support !

I used those commands that you mention it.
How can I be sure now my issue is solved ?

command result: apt update

Here is output:

Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://ftp.debian.org/debian bookworm InRelease
Hit:3 http://ftp.debian.org/debian bookworm-updates InRelease
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.



I run this command: apt install proxmox-ve

Here is output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
proxmox-default-kernel proxmox-kernel-helper
Suggested packages:
systemd-boot
The following NEW packages will be installed:
proxmox-default-kernel proxmox-kernel-helper proxmox-ve
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/23.4 kB of archives.
After this operation, 127 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package proxmox-default-kernel.
(Reading database ... 89468 files and directories currently installed.)
Preparing to unpack .../proxmox-default-kernel_1.1.0_all.deb ...
Unpacking proxmox-default-kernel (1.1.0) ...
Selecting previously unselected package proxmox-kernel-helper.
Preparing to unpack .../proxmox-kernel-helper_8.1.0_all.deb ...
Adding 'diversion of /usr/sbin/grub-install to /usr/sbin/grub-install.real by proxmox-kernel-helper'
Unpacking proxmox-kernel-helper (8.1.0) ...
Selecting previously unselected package proxmox-ve.
Preparing to unpack .../proxmox-ve_8.2.0_all.deb ...
Unpacking proxmox-ve (8.2.0) ...
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Setting up proxmox-kernel-helper (8.1.0) ...
Setting up proxmox-kernel-6.8.8-2-pve-signed (6.8.8-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.8.8-2-pve /boot/vmlinuz-6.8.8-2-pve
update-initramfs: Generating /boot/initrd.img-6.8.8-2-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.
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 6.8.8-2-pve /boot/vmlinuz-6.8.8-2-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 6.8.8-2-pve /boot/vmlinuz-6.8.8-2-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 6.8.8-2-pve /boot/vmlinuz-6.8.8-2-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.8-2-pve
Found initrd image: /boot/initrd.img-6.8.8-2-pve
Found linux image: /boot/vmlinuz-6.8.8-1-pve
Found initrd image: /boot/initrd.img-6.8.8-1-pve
Found linux image: /boot/vmlinuz-6.8.4-3-pve
Found initrd image: /boot/initrd.img-6.8.4-3-pve
Found linux image: /boot/vmlinuz-6.5.13-5-pve
Found initrd image: /boot/initrd.img-6.5.13-5-pve
Found linux image: /boot/vmlinuz-5.13.19-6-pve
Found initrd image: /boot/initrd.img-5.13.19-6-pve
Found linux image: /boot/vmlinuz-5.13.19-2-pve
Found initrd image: /boot/initrd.img-5.13.19-2-pve
Found memtest86+x64 image: /boot/memtest86+x64.bin
done
Setting up proxmox-kernel-6.8 (6.8.8-2) ...
Setting up proxmox-default-kernel (1.1.0) ...
Setting up proxmox-ve (8.2.0) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.8.8-2-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.
 

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!