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

devrimer

Member
Mar 19, 2022
16
8
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
"apt update; apt install proxmox-ve"
 
  • 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.
 
the output looks okay!
 
  • Like
Reactions: devrimer
I have same problem

root@pve:~# 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.
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
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/33FB-6050
Copying kernel 6.5.13-5-pve
Copying kernel 6.8.4-3-pve
Copying kernel 6.8.8-2-pve
cp: error writing '/var/tmp/espmounts/33FB-6050/initrd.img-6.8.8-2-pve': No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-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.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
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/33FB-6050
Copying kernel 6.5.13-5-pve
Copying kernel 6.8.4-3-pve
Copying kernel 6.8.8-2-pve
cp: error writing '/var/tmp/espmounts/33FB-6050/initrd.img-6.8.8-2-pve': No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-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:
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)

root@pve:~# apt update
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:2 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:3 http://ftp.debian.org/debian bookworm InRelease
Hit:4 http://ftp.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@pve:~# apt install proxmox-ve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
proxmox-ve is already the newest version (8.2.0).
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
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/33FB-6050
Copying kernel 6.5.13-5-pve
Copying kernel 6.8.4-3-pve
Copying kernel 6.8.8-2-pve
cp: error writing '/var/tmp/espmounts/33FB-6050/initrd.img-6.8.8-2-pve': No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-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.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
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/33FB-6050
Copying kernel 6.5.13-5-pve
Copying kernel 6.8.4-3-pve
Copying kernel 6.8.8-2-pve
cp: error writing '/var/tmp/espmounts/33FB-6050/initrd.img-6.8.8-2-pve': No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-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:
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)

This appears to be due to insufficient disk space, but the disk still have 5GB
root@pve:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 63G 0 63G 0% /dev
tmpfs 13G 18M 13G 1% /run
rpool/ROOT/pve-1 13G 5.8G 6.4G 48% /
tmpfs 63G 43M 63G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
efivarfs 128K 51K 73K 41% /sys/firmware/efi/efivars
/dev/sdc1 15T 4.5T 11T 31% /mnt/pve/verify_1
/dev/sda1 13T 140G 13T 2% /mnt/pve/data_1
/dev/sdb1 15T 4.5T 11T 31% /mnt/pve/data_2
rpool 6.4G 128K 6.4G 1% /rpool
workspace 1.2T 17G 1.2T 2% /workspace
rpool/data 6.4G 128K 6.4G 1% /rpool/data
rpool/ROOT 6.4G 128K 6.4G 1% /rpool/ROOT
workspace/subvol-200-disk-0 128G 1.3G 127G 1% /workspace/subvol-200-disk-0
workspace/subvol-201-disk-0 32G 13G 20G 39% /workspace/subvol-201-disk-0
workspace/subvol-200-disk-1 128G 128K 128G 1% /workspace/subvol-200-disk-1
temporary 7.2T 2.5T 4.7T 35% /temporary
tmpfs 13G 0 13G 0% /run/user/0
/dev/fuse 128M 32K 128M 1% /etc/pve

can i do anything to save system? or have to reinstall?
 
I have the same problem, I use Debian 12 and wanted to install Proxmox on a newly installed system.

However, the help suggestions mentioned here did not help me.

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

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!