haveing problems when I update my system

HGladstone

New Member
Jul 6, 2024
2
0
1
I encountered an error when I tried to update the server

I found a similar problem after trying to search for it, but the solution in it didn't work for me
https://forum.proxmox.com/threads/e-sub-process-usr-bin-dpkg-returned-an-error-code-1.150237/

I performed the following steps and got the output

Code:
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
Code:
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 my system? Or do I just have to reinstall?

BTW: If I reinstall the system, is there any way to add disks with existing data, including xfs filesystems and zfs filesystems?
 

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!