[SOLVED] kernel update fail 6.14 to 7.0 no space left on device

adris

New Member
Nov 28, 2025
12
1
3
Hello,
I'm having an update issue specifically with the Proxmox kernel. The `apt upgrade` command works for all packages but gets stuck on the Proxmox kernel version. specifically when trying to update from version 6.17.13-11-pve to 7.0.0.

Code:
root@nas:/# apt upgrade
Summary:                       
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
  14 not fully installed or removed.
  Download size: 0 B / 746 MB
  Space needed: 0 B / 1022 GB available

Continue? [Y/n] y
Setting up initramfs-tools (0.148.4) ...
update-initramfs: deferring update (trigger activated)
Setting up proxmox-kernel-7.0.2-1-pve-signed (7.0.2-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 7.0.2-1-pve /boot/vmlinuz-7.0.2-1-pve
update-initramfs: Generating /boot/initrd.img-7.0.2-1-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-11-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/6.17.13-11-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-7.0.2-1-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-7.0.2-1-pve-signed (--configure):
 installed proxmox-kernel-7.0.2-1-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-7.0.2-6-pve-signed (7.0.2-6) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 7.0.2-6-pve /boot/vmlinuz-7.0.2-6-pve
update-initramfs: Generating /boot/initrd.img-7.0.2-6-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-11-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/6.17.13-11-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-7.0.2-6-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-7.0.2-6-pve-signed (--configure):
 installed proxmox-kernel-7.0.2-6-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-6.14.11-9-pve-signed (6.14.11-9) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.14.11-9-pve /boot/vmlinuz-6.14.11-9-pve
update-initramfs: Generating /boot/initrd.img-6.14.11-9-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-11-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/6.17.13-11-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.14.11-9-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.14.11-9-pve-signed (--configure):
 installed proxmox-kernel-6.14.11-9-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-7.0.2-2-pve-signed (7.0.2-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 7.0.2-2-pve /boot/vmlinuz-7.0.2-2-pve
update-initramfs: Generating /boot/initrd.img-7.0.2-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-11-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/6.17.13-11-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-7.0.2-2-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-7.0.2-2-pve-signed (--configure):
 installed proxmox-kernel-7.0.2-2-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-6.17.13-11-pve-signed (6.17.13-11) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.17.13-11-pve /boot/vmlinuz-6.17.13-11-pve
update-initramfs: Generating /boot/initrd.img-6.17.13-11-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-11-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/6.17.13-11-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.17.13-11-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.17.13-11-pve-signed (--configure):
 installed proxmox-kernel-6.17.13-11-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.17:
 proxmox-kernel-6.17 depends on proxmox-kernel-6.17.13-11-pve-signed | proxmox-kernel-6.17.13-11-pve; however:
  Package proxmox-kernel-6.17.13-11-pve-signed is not configured yet.
  Package proxmox-kernel-6.17.13-11-pve is not installed.
  Package proxmox-kernel-6.17.13-11-pve-signed which provides proxmox-kernel-6.17.13-11-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.17 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-kernel-7.0:
 proxmox-kernel-7.0 depends on proxmox-kernel-7.0.2-6-pve-signed | proxmox-kernel-7.0.2-6-pve; however:
  Package proxmox-kernel-7.0.2-6-pve-signed is not configured yet.
  Package proxmox-kernel-7.0.2-6-pve is not installed.
  Package proxmox-kernel-7.0.2-6-pve-signed which provides proxmox-kernel-7.0.2-6-pve is not configured yet.

dpkg: error processing package proxmox-kernel-7.0 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.148.4) ...
update-initramfs: Generating /boot/initrd.img-7.0.2-6-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-11-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/6.17.13-11-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-7.0.2-1-pve-signed
 proxmox-kernel-7.0.2-6-pve-signed
 proxmox-kernel-6.14.11-9-pve-signed
 proxmox-kernel-7.0.2-2-pve-signed
 proxmox-kernel-6.17.13-11-pve-signed
 proxmox-kernel-6.17
 proxmox-kernel-7.0
 initramfs-tools
Error: Sub-process /usr/bin/dpkg returned an error code (1)
root@nas:/#

Code:
root@nas:~# uname -a
Linux nas 7.0.0-3-pve #1 SMP PREEMPT_DYNAMIC PMX 7.0.0-3 (2026-04-21T22:56Z) x86_64 GNU/Linux
Code:
oot@nas:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             43G     0   43G   0% /dev
tmpfs           9.2G  4.1M  9.2G   1% /run
efivarfs        128K   58K   66K  48% /sys/firmware/efi/efivars
/dev/sdl3       3.7T  2.8T  953G  75% /
tmpfs            46G   38M   46G   1% /dev/shm
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
tmpfs            46G  8.0K   46G   1% /tmp
tmpfs           5.0M   12K  5.0M   1% /run/lock
/dev/sda5       906G  396G  465G  46% /mnt/pve/To_1
/dev/sdf1        15T  793G   13T   6% /mnt/pve/ETB_2
/dev/sdd1        15T  4.7T  9.9T  33% /mnt/pve/ETB_1
/dev/sde1        15T   12T  2.7T  82% /mnt/pve/seize_to
ETB_mirror_34    15T  128K   15T   1% /ETB_mirror_34
/dev/fuse       128M  104K  128M   1% /etc/pve
tmpfs           9.2G   72K  9.2G   1% /run/user/116
tmpfs           9.2G   56K  9.2G   1% /run/user/0
 
Code:
root@nas:/# dpkg --configure -a
dpkg: dependency problems prevent configuration of proxmox-kernel-6.17:
 proxmox-kernel-6.17 depends on proxmox-kernel-6.17.13-11-pve-signed | proxmox-kernel-6.17.13-11-pve; however:
  Package proxmox-kernel-6.17.13-11-pve-signed is not configured yet.
  Package proxmox-kernel-6.17.13-11-pve is not installed.
  Package proxmox-kernel-6.17.13-11-pve-signed which provides proxmox-kernel-6.17.13-11-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.17 (--configure):
 dependency problems - leaving unconfigured
Setting up initramfs-tools (0.148.4) ...
update-initramfs: deferring update (trigger activated)
Setting up proxmox-kernel-7.0.2-1-pve-signed (7.0.2-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 7.0.2-1-pve /boot/vmlinuz-7.0.2-1-pve
update-initramfs: Generating /boot/initrd.img-7.0.2-1-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-6-pve
        Copying kernel and creating boot-entry for 7.0.0-3-pve
        Copying kernel and creating boot-entry for 7.0.2-2-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/7.0.2-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-7.0.2-1-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-7.0.2-1-pve-signed (--configure):
 installed proxmox-kernel-7.0.2-1-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-7.0.2-6-pve-signed (7.0.2-6) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 7.0.2-6-pve /boot/vmlinuz-7.0.2-6-pve
update-initramfs: Generating /boot/initrd.img-7.0.2-6-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-6-pve
        Copying kernel and creating boot-entry for 7.0.0-3-pve
        Copying kernel and creating boot-entry for 7.0.2-2-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/7.0.2-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-7.0.2-6-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-7.0.2-6-pve-signed (--configure):
 installed proxmox-kernel-7.0.2-6-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-6.14.11-9-pve-signed (6.14.11-9) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.14.11-9-pve /boot/vmlinuz-6.14.11-9-pve
update-initramfs: Generating /boot/initrd.img-6.14.11-9-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-6-pve
        Copying kernel and creating boot-entry for 7.0.0-3-pve
        Copying kernel and creating boot-entry for 7.0.2-2-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/7.0.2-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.14.11-9-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.14.11-9-pve-signed (--configure):
 installed proxmox-kernel-6.14.11-9-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-7.0.2-2-pve-signed (7.0.2-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 7.0.2-2-pve /boot/vmlinuz-7.0.2-2-pve
update-initramfs: Generating /boot/initrd.img-7.0.2-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-6-pve
        Copying kernel and creating boot-entry for 7.0.0-3-pve
        Copying kernel and creating boot-entry for 7.0.2-2-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/7.0.2-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-7.0.2-2-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-7.0.2-2-pve-signed (--configure):
 installed proxmox-kernel-7.0.2-2-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-7.0:
 proxmox-kernel-7.0 depends on proxmox-kernel-7.0.2-6-pve-signed | proxmox-kernel-7.0.2-6-pve; however:
  Package proxmox-kernel-7.0.2-6-pve-signed is not configured yet.
  Package proxmox-kernel-7.0.2-6-pve is not installed.
  Package proxmox-kernel-7.0.2-6-pve-signed which provides proxmox-kernel-7.0.2-6-pve is not configured yet.

dpkg: error processing package proxmox-kernel-7.0 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.148.4) ...
update-initramfs: Generating /boot/initrd.img-7.0.2-6-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/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-6-pve
        Copying kernel and creating boot-entry for 7.0.0-3-pve
        Copying kernel and creating boot-entry for 7.0.2-2-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/7.0.2-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.17
 proxmox-kernel-7.0.2-1-pve-signed
 proxmox-kernel-7.0.2-6-pve-signed
 proxmox-kernel-6.14.11-9-pve-signed
 proxmox-kernel-7.0.2-2-pve-signed
 proxmox-kernel-7.0
 initramfs-tools
root@nas:/#

Code:
root@nas:/# apt autoremove
REMOVING:                       
  proxmox-kernel-6.14.11-8-pve-signed   proxmox-kernel-6.17.13-7-pve-signed  proxmox-kernel-7.0.2-4-pve-signed
  proxmox-kernel-6.17.13-10-pve-signed  proxmox-kernel-6.17.13-9-pve-signed  proxmox-kernel-7.0.2-5-pve-signed

Summary:
  Upgrading: 0, Installing: 0, Removing: 6, Not Upgrading: 0
  14 not fully installed or removed.
  Freed space: 5662 MB

Continue? [Y/n] y
(Reading database ... 297474 files and directories currently installed.)
Removing proxmox-kernel-6.14.11-8-pve-signed (6.14.11-8) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.14.11-8-pve /boot/vmlinuz-6.14.11-8-pve
update-initramfs: Deleting /boot/initrd.img-6.14.11-8-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 6.14.11-8-pve /boot/vmlinuz-6.14.11-8-pve
run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 6.14.11-8-pve /boot/vmlinuz-6.14.11-8-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-11-pve
mkdir: cannot create directory '/var/tmp/espmounts/A437-70EE/EFI/proxmox/6.17.13-11-pve': No space left on device
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.14.11-8-pve-signed.postrm line 15.
dpkg: error processing package proxmox-kernel-6.14.11-8-pve-signed (--remove):
 installed proxmox-kernel-6.14.11-8-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.14.11-8-pve-signed
Processing was halted because there were too many errors.
Error: Sub-process /usr/bin/dpkg returned an error code (1)
root@nas:/#
 
root@nas:/# ls -al /boot/
total 4026592
drwxr-xr-x 1 root root 2650 May 22 11:57 .
drwxr-xr-x 1 root root 186 Jan 31 20:00 ..
-rw-r--r-- 1 root root 8940727 Mar 13 09:44 System.map-6.14.11-6-pve
-rw-r--r-- 1 root root 8940842 Apr 30 11:27 System.map-6.14.11-7-pve
-rw-r--r-- 1 root root 8940842 May 15 11:33 System.map-6.14.11-9-pve
-rw-r--r-- 1 root root 9365401 May 20 11:37 System.map-6.17.13-11-pve
-rw-r--r-- 1 root root 9132579 Mar 13 09:06 System.map-6.17.13-2-pve
-rw-r--r-- 1 root root 10269663 Mar 31 23:50 System.map-6.17.13-3-pve
-rw-r--r-- 1 root root 9365223 Apr 22 00:03 System.map-6.17.13-4-pve
-rw-r--r-- 1 root root 9365223 Apr 30 10:48 System.map-6.17.13-6-pve
-rw-r--r-- 1 root root 10452909 Apr 14 17:57 System.map-7.0.0-2-pve
-rw-r--r-- 1 root root 10452909 Apr 22 00:56 System.map-7.0.0-3-pve
-rw-r--r-- 1 root root 10452992 May 5 21:23 System.map-7.0.2-1-pve
-rw-r--r-- 1 root root 10452992 May 8 08:08 System.map-7.0.2-2-pve
-rw-r--r-- 1 root root 10452992 May 20 10:55 System.map-7.0.2-6-pve
-rw-r--r-- 1 root root 296186 Mar 13 09:44 config-6.14.11-6-pve
-rw-r--r-- 1 root root 296186 Apr 30 11:27 config-6.14.11-7-pve
-rw-r--r-- 1 root root 296186 May 15 11:33 config-6.14.11-9-pve
-rw-r--r-- 1 root root 303102 May 20 11:37 config-6.17.13-11-pve
-rw-r--r-- 1 root root 302305 Mar 13 09:06 config-6.17.13-2-pve
-rw-r--r-- 1 root root 303030 Mar 31 23:50 config-6.17.13-3-pve
-rw-r--r-- 1 root root 303101 Apr 22 00:03 config-6.17.13-4-pve
-rw-r--r-- 1 root root 303101 Apr 30 10:48 config-6.17.13-6-pve
-rw-r--r-- 1 root root 308331 Apr 14 17:57 config-7.0.0-2-pve
-rw-r--r-- 1 root root 308331 Apr 22 00:56 config-7.0.0-3-pve
-rw-r--r-- 1 root root 308331 May 5 21:23 config-7.0.2-1-pve
-rw-r--r-- 1 root root 308331 May 8 08:08 config-7.0.2-2-pve
-rw-r--r-- 1 root root 308342 May 20 10:55 config-7.0.2-6-pve
drwxr-xr-x 1 root root 0 Oct 8 2025 efi
drwxr-xr-x 1 root root 52 May 1 12:53 grub
-rw-r--r-- 1 root root 155966303 Mar 18 23:16 initrd.img-6.14.11-6-pve
-rw-r--r-- 1 root root 155985964 May 1 12:49 initrd.img-6.14.11-7-pve
-rw-r--r-- 1 root root 156123353 May 22 11:55 initrd.img-6.14.11-9-pve
-rw-r--r-- 1 root root 234461163 May 22 11:51 initrd.img-6.17.13-11-pve
-rw-r--r-- 1 root root 233695006 Mar 19 07:40 initrd.img-6.17.13-2-pve
-rw-r--r-- 1 root root 233564785 Apr 9 14:34 initrd.img-6.17.13-3-pve
-rw-r--r-- 1 root root 234235816 Apr 22 18:00 initrd.img-6.17.13-4-pve
-rw-r--r-- 1 root root 234246710 May 1 12:52 initrd.img-6.17.13-6-pve
-rw-r--r-- 1 root root 238513915 Apr 22 18:01 initrd.img-7.0.0-2-pve
-rw-r--r-- 1 root root 238515366 Apr 26 21:09 initrd.img-7.0.0-3-pve
-rw-r--r-- 1 root root 238730709 May 22 11:54 initrd.img-7.0.2-1-pve
-rw-r--r-- 1 root root 238733892 May 22 11:56 initrd.img-7.0.2-2-pve
-rw-r--r-- 1 root root 238553958 May 15 18:26 initrd.img-7.0.2-2-pve.dpkg-bak
-rw-r--r-- 1 root root 238749553 May 19 18:46 initrd.img-7.0.2-4-pve.dpkg-bak
-rw-r--r-- 1 root root 238755653 May 21 18:09 initrd.img-7.0.2-5-pve.dpkg-bak
-rw-r--r-- 1 root root 238751518 May 22 11:57 initrd.img-7.0.2-6-pve
-rw-r--r-- 1 root root 238751270 May 22 11:54 initrd.img-7.0.2-6-pve.dpkg-bak
-rw-r--r-- 1 root root 151020 Nov 17 2024 memtest86+ia32.bin
-rw-r--r-- 1 root root 152064 Nov 17 2024 memtest86+ia32.efi
-rw-r--r-- 1 root root 155992 Nov 17 2024 memtest86+x64.bin
-rw-r--r-- 1 root root 157184 Nov 17 2024 memtest86+x64.efi
drwxr-xr-x 1 root root 192 May 1 12:53 pve
-rw-r--r-- 1 root root 14916712 Mar 13 09:44 vmlinuz-6.14.11-6-pve
-rw-r--r-- 1 root root 14916712 Apr 30 11:27 vmlinuz-6.14.11-7-pve
-rw-r--r-- 1 root root 14916712 May 15 11:33 vmlinuz-6.14.11-9-pve
-rw-r--r-- 1 root root 15956776 May 20 11:37 vmlinuz-6.17.13-11-pve
-rw-r--r-- 1 root root 15837992 Mar 13 09:06 vmlinuz-6.17.13-2-pve
-rw-r--r-- 1 root root 16046888 Mar 31 23:50 vmlinuz-6.17.13-3-pve
-rw-r--r-- 1 root root 15956776 Apr 22 00:03 vmlinuz-6.17.13-4-pve
-rw-r--r-- 1 root root 15956776 Apr 30 10:48 vmlinuz-6.17.13-6-pve
-rw-r--r-- 1 root root 16227432 Apr 14 17:57 vmlinuz-7.0.0-2-pve
-rw-r--r-- 1 root root 16227432 Apr 22 00:56 vmlinuz-7.0.0-3-pve
-rw-r--r-- 1 root root 16227432 May 5 21:23 vmlinuz-7.0.2-1-pve
-rw-r--r-- 1 root root 16227432 May 8 08:08 vmlinuz-7.0.2-2-pve
-rw-r--r-- 1 root root 16227432 May 20 10:55 vmlinuz-7.0.2-6-pve
 
I've run across the same issue myself and it's been a bit un-obvious to track down.

If I remember correctly, the issue was that it's actually trying to write to the EFI partition via links from /var/tmp, while you wonder why it can't write there.

So you need to clear out space all across /boot.

I had to remove quite a few kernels left over from a Proxmox 8 to 9 migration, which had Proxmox lose track of V8 kernels and then I believe I actually went and cleared out stuff in the EFI partition as well, which isn't for the faint-hearted.

I don't remember the details (I only commit to brain and that is failing), but was sure glad it worked out fine.
 
Thanks for your feedback. I'll give this a try.
 
is a apt autoremove not enough to fix this? did the job on my site a few weeks ago.
 
Last edited:
is a apt autoremove not enough to fix this? did the job on my site a few weeks ago.
No I keep getting the same error message: the /boot directory is full, and that's what's causing the problem. But since this involves a critical phase of the boot process, I don't want to make a mistake.
 
what about proxmox-boot-tool kernel remove?

Code:
root@pveneo:~# proxmox-boot-tool kernel
E: subcommand is mandatory for 'kernel'.

  /usr/sbin/proxmox-boot-tool kernel <add|remove> <kernel-version>
  /usr/sbin/proxmox-boot-tool kernel pin <kernel-version> [--next-boot]
  /usr/sbin/proxmox-boot-tool kernel unpin [--next-boot]
  /usr/sbin/proxmox-boot-tool kernel list
 
It's a recurrent problem, I use the following command to get rid of old kernel

Code:
dpkg -l 'proxmox-kernel-*.*.*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt -y purge
 
It's a recurrent problem, I use the following command to get rid of old kernel

Code:
dpkg -l 'proxmox-kernel-*.*.*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt -y purge
If you somehow have more kernels installed than your EFI can hold, apt purge unfortunately doesn't finish because the post.rm script tries to setup the remaining kernels. The solution is to manually remove old vmlinuz* / initrd.img* from the EFI (not /boot) AND purge the same packages to have enough space to finish the purge and prevent immediate refilling of the EFI. This is exactly what happened in the mentioned thread.
 
Last edited:
Code:
root@nas:/# dpkg -l | grep proxmox-kernel
ic  proxmox-kernel-6.14                              6.14.11-9                                 all          Latest Proxmox Kernel Image
ic  proxmox-kernel-6.14.11-4-pve                     6.14.11-4                                 amd64        Proxmox Kernel Image
ic  proxmox-kernel-6.14.11-5-pve-signed              6.14.11-5                                 amd64        Proxmox Kernel Image (signed)
ii  proxmox-kernel-6.14.11-6-pve-signed              6.14.11-6                                 amd64        Proxmox Kernel Image (signed)
ii  proxmox-kernel-6.14.11-7-pve-signed              6.14.11-7                                 amd64        Proxmox Kernel Image (signed)
rH  proxmox-kernel-6.14.11-8-pve-signed              6.14.11-8                                 amd64        Proxmox Kernel Image (signed)
iF  proxmox-kernel-6.14.11-9-pve-signed              6.14.11-9                                 amd64        Proxmox Kernel Image (signed)
iU  proxmox-kernel-6.17                              6.17.13-11                                amd64        Latest Proxmox Kernel Image
ic  proxmox-kernel-6.17.13-1-pve-signed              6.17.13-1                                 amd64        Proxmox Kernel Image (signed)
rH  proxmox-kernel-6.17.13-10-pve-signed             6.17.13-10                                amd64        Proxmox Kernel Image (signed)
rF  proxmox-kernel-6.17.13-11-pve-signed             6.17.13-11                                amd64        Proxmox Kernel Image (signed)
ii  proxmox-kernel-6.17.13-2-pve-signed              6.17.13-2                                 amd64        Proxmox Kernel Image (signed)
ii  proxmox-kernel-6.17.13-3-pve-signed              6.17.13-3                                 amd64        Proxmox Kernel Image (signed)
ii  proxmox-kernel-6.17.13-4-pve-signed              6.17.13-4                                 amd64        Proxmox Kernel Image (signed)
ii  proxmox-kernel-6.17.13-6-pve-signed              6.17.13-6                                 amd64        Proxmox Kernel Image (signed)
rH  proxmox-kernel-6.17.13-7-pve-signed              6.17.13-7                                 amd64        Proxmox Kernel Image (signed)
pH  proxmox-kernel-6.17.13-9-pve-signed              6.17.13-9                                 amd64        Proxmox Kernel Image (signed)
ic  proxmox-kernel-6.17.2-1-pve-signed               6.17.2-1                                  amd64        Proxmox Kernel Image (signed)
ic  proxmox-kernel-6.17.2-2-pve-signed               6.17.2-2                                  amd64        Proxmox Kernel Image (signed)
ic  proxmox-kernel-6.17.4-1-pve-signed               6.17.4-1                                  amd64        Proxmox Kernel Image (signed)
ic  proxmox-kernel-6.17.4-2-pve-signed               6.17.4-2                                  amd64        Proxmox Kernel Image (signed)
ic  proxmox-kernel-6.17.9-1-pve-signed               6.17.9-1                                  amd64        Proxmox Kernel Image (signed)
iU  proxmox-kernel-7.0                               7.0.2-6                                   amd64        Latest Proxmox Kernel Image
ii  proxmox-kernel-7.0.0-2-pve-signed                7.0.0-2                                   amd64        Proxmox Kernel Image (signed)
ii  proxmox-kernel-7.0.0-3-pve-signed                7.0.0-3                                   amd64        Proxmox Kernel Image (signed)
iF  proxmox-kernel-7.0.2-1-pve-signed                7.0.2-1                                   amd64        Proxmox Kernel Image (signed)
iF  proxmox-kernel-7.0.2-2-pve-signed                7.0.2-2                                   amd64        Proxmox Kernel Image (signed)
pH  proxmox-kernel-7.0.2-4-pve-signed                7.0.2-4                                   amd64        Proxmox Kernel Image (signed)
pH  proxmox-kernel-7.0.2-5-pve-signed                7.0.2-5                                   amd64        Proxmox Kernel Image (signed)
iF  proxmox-kernel-7.0.2-6-pve-signed                7.0.2-6                                   amd64        Proxmox Kernel Image (signed)
ii  proxmox-kernel-helper

Code:
root@nas:/# dpkg -l 'proxmox-kernel-*.*.*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt -y purge
REMOVING:                       
  proxmox-kernel-6.14.11-6-pve-signed*  proxmox-kernel-6.17.13-2-pve-signed*  proxmox-kernel-6.17.13-7-pve-signed  proxmox-kernel-7.0.2-5-pve-signed
  proxmox-kernel-6.14.11-7-pve-signed*  proxmox-kernel-6.17.13-3-pve-signed*  proxmox-kernel-6.17.13-9-pve-signed
  proxmox-kernel-6.14.11-8-pve-signed   proxmox-kernel-6.17.13-4-pve-signed*  proxmox-kernel-7.0.0-2-pve-signed*
  proxmox-kernel-6.17.13-10-pve-signed  proxmox-kernel-6.17.13-6-pve-signed*  proxmox-kernel-7.0.2-4-pve-signed

Summary:
  Upgrading: 0, Installing: 0, Removing: 13, Not Upgrading: 0
  14 not fully installed or removed.
  Freed space: 11.9 GB

(Reading database ... 297474 files and directories currently installed.)
Removing proxmox-kernel-6.14.11-8-pve-signed (6.14.11-8) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.14.11-8-pve /boot/vmlinuz-6.14.11-8-pve
update-initramfs: Deleting /boot/initrd.img-6.14.11-8-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 6.14.11-8-pve /boot/vmlinuz-6.14.11-8-pve
run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 6.14.11-8-pve /boot/vmlinuz-6.14.11-8-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/A437-70EE
        Copying kernel and creating boot-entry for 6.17.13-11-pve
        Copying kernel and creating boot-entry for 7.0.0-3-pve
        Copying kernel and creating boot-entry for 7.0.2-2-pve
cp: error writing '/var/tmp/espmounts/A437-70EE/EFI/proxmox/7.0.2-2-pve/initrd.img-7.0.2-2-pve': No space left on device
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.14.11-8-pve-signed.postrm line 15.
dpkg: error processing package proxmox-kernel-6.14.11-8-pve-signed (--remove):
 installed proxmox-kernel-6.14.11-8-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.14.11-8-pve-signed
Processing was halted because there were too many errors.
Error: Sub-process /usr/bin/dpkg returned an error code (1)
 
Last edited:
Code:
root@nas:/# proxmox-boot-tool kernel list
Manually selected kernels:
None.

Automatically selected kernels:
6.17.13-6-pve
7.0.0-3-pve
7.0.2-2-pve
7.0.2-6-pve

root@nas:/# proxmox-boot-tool kernel remove 6.17.13-6-pve
Kernel '6.17.13-6-pve' not found in manual kernel list.
 
Code:
root@nas:/# proxmox-boot-tool status
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
System currently booted with uefi
A437-70EE is configured with: uefi (versions: 6.17.13-11-pve, 6.17.13-6-pve, 7.0.0-3-pve, 7.0.2-1-pve, 7.0.2-2-pve)
rmdir: failed to remove '/var/tmp/espmounts/A437-70EE': Directory not empty
A438-D2C2 is configured with: uefi (versions: 6.17.13-2-pve, 6.17.13-6-pve, 7.0.0-2-pve, 7.0.0-3-pve)

I see there are two folders. Can I delete one of them?
 
No, you apparantly have 2 EFI partitions configured, probably a mirrored disk setup.

Mount both EFI partitions:
mkdir /mnt/efi1 /mnt/efi2
mount /dev/disk/by-uuid/A437-70EE /mnt/efi1
mount /dev/disk/by-uuid/A438-D2C2 /mnt/efi2

Remove the old 6.* kernels:
rm -rf /mnt/efi1/EFI/proxmox/6.*
rm -rf /mnt/efi2/EFI/proxmox/6.*

Umount the EFI partitions:
umount /mnt/efi1 /mnt/efi2
rm -rf /mnt/ef1 /mnt/efi2

Purge the 6.* packages:
apt purge proxmox-kernel-6.*

Try the update again:
apt dist-upgrade

dpkg -l | grep proxmox-kernel should only show 7.0 kernel packages at this stage.

Check the resulting boot configuration:
proxmox-boot-tool status
 
Last edited: