Unable to Remove Kernel Package - No Space Left on Device

Leapveera

New Member
Nov 15, 2023
1
0
1
I am experiencing an issue with removing a kernel package on my Proxmox server, and I could use some assistance in resolving the issue. Here are the details:

System Information:

  • Proxmox Version: pve-manager/7.4-17/513c62be (running kernel: 5.15.108-1-pve)
  • Operating System: Prxmox
  • Installation Method: ISO
Whenever I tried to run the apt upgrade, or apt autremove, it shows below error
Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: linux-image-5.10.0-24-amd64 0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded. 6 not fully installed or removed. After this operation, 318 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 128691 files and directories currently installed.) Removing linux-image-5.10.0-24-amd64 (5.10.179-5) ... /etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting /boot/initrd.img-5.10.0-24-amd64 /etc/kernel/postrm.d/zz-proxmox-boot: Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace.. No /etc/kernel/cmdline found - falling back to /proc/cmdline Copying and configuring kernels on /dev/disk/by-uuid/1FB4-709C Copying kernel 5.15.108-1-pve Copying kernel 5.15.111-1-pve cp: error writing '/var/tmp/espmounts/1FB4-709C/initrd.img-5.15.111-1-pve': No space left on device run-parts: /etc/kernel/postrm.d/zz-proxmox-boot exited with return code 1 dpkg: error processing package linux-image-5.10.0-24-amd64 (--remove): installed linux-image-5.10.0-24-amd64 package post-removal script subprocess returned error exit status 1 dpkg: too many errors, stopping Errors were encountered while processing: linux-image-5.10.0-24-amd64 Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1)

root@www:/var/tmp/espmounts# df -h
Filesystem Size Used Avail Use% Mounted on udev 126G 0 126G 0% /dev tmpfs 26G 2.5M 26G 1% /run rpool/ROOT/pve-1 3.3T 1.2T 2.1T 37% / tmpfs 126G 49M 126G 1% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock rpool 2.1T 128K 2.1T 1% /rpool rpool/ROOT 2.1T 128K 2.1T 1% /rpool/ROOT rpool/data 2.1T 128K 2.1T 1% /rpool/data /dev/fuse 128M 36K 128M 1% /etc/pve tmpfs 26G 0 26G 0% /run/user/0

available kernels

Manually selected kernels: None. Automatically selected kernels: 5.15.108-1-pve 5.15.111-1-pve 5.15.116-1-pve 5.4.203-1-pve

How can we solve this
 
Code:
/var/tmp/espmounts/1FB4-709C/

This looks like you have no space left on your EFI disk. Can you mount it manually and check?
 

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!