[SOLVED] not enough space at boot partition while upgrading

Oct 23, 2020
83
3
13
31
Hi guys! I'm trapped... It was my first node with Proxmox and I incorrect sized boot partition to 256MB. I forgot about it and starting to upgrade to Proxmox 7, which one was broken. At the moment host is switched on, but boot partition used 100% space. and pve-kernel-5.13 can not install and continue upgrading. I tried to delete previous versions of kernel but it impossible.
output of removing kernel:
Code:
apt purge pve-kernel-5.13
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-ve : Depends: pve-kernel-5.13 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
I also only got a 256MB boot partition and I run apt autoremove from time to time after an PVE upgrade so old kernels get removed from the boot partition. Otherwise it would get full too. But not sure how well that works while upgrading between major versions.
 
Last edited:
Hello,

specify the kernel version for uninstalling it: For example apt purge pve-kernel-5.13.19-1-pve should work.

apt list --installed | grep kernel for a list of installed kernels
 
Last edited:
Hello,

specify the kernel version for uninstalling it: For example apt purge pve-kernel-5.13.19-1-pve should work.

apt list --installed | grep kernel for a list of installed kernels
I tried this, but unfortunately
output
Code:
root@pve04:~# apt list --installed | grep kernel

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

pve-kernel-5.13/stable,now 7.1-9 all [installed,automatic]
pve-kernel-5.4.103-1-pve/now 5.4.103-1 amd64 [installed,local]
pve-kernel-5.4.128-1-pve/now 5.4.128-2 amd64 [installed,local]
pve-kernel-5.4.143-1-pve/now 5.4.143-1 amd64 [installed,local]
pve-kernel-5.4.166-1-pve/now 5.4.166-1 amd64 [installed,local]
pve-kernel-5.4.174-2-pve/now 5.4.174-2 amd64 [installed,local]
pve-kernel-5.4/now 6.4-15 all [installed,local]
pve-kernel-helper/stable,now 7.1-13 all [installed,automatic]
root@pve04:~# apt purge pve-kernel-5.4.103-1-pve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 pve-kernel-5.13 : Depends: pve-kernel-5.13.19-6-pve but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
i am having the same issue i think

Starting system upgrade: apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: pve-kernel-5.4 : Depends: pve-kernel-5.4.162-1-pve but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). System not fully up to date (found 167 new packages) starting shell dircolors: no SHELL environment variable, and no shell type option given root@ProxMox-VE / # apt list --installed |grep kernel WARNING: apt does not have a stable CLI interface. Use with caution in scripts. pve-kernel-5.3.18-3-pve/stable,stable,now 5.3.18-3 amd64 [installed,automatic] pve-kernel-5.3/stable,stable,now 6.1-6 all [installed,automatic] pve-kernel-5.4.34-1-pve/stable,stable,now 5.4.34-2 amd64 [installed,auto-removable] pve-kernel-5.4.41-1-pve/stable,stable,now 5.4.41-1 amd64 [installed,auto-removable] pve-kernel-5.4.44-1-pve/stable,stable,now 5.4.44-1 amd64 [installed,auto-removable] pve-kernel-5.4.44-2-pve/stable,stable,now 5.4.44-2 amd64 [installed,automatic] pve-kernel-5.4.60-1-pve/stable,stable,now 5.4.60-2 amd64 [installed,automatic] pve-kernel-5.4.65-1-pve/stable,stable,now 5.4.65-1 amd64 [installed,automatic] pve-kernel-5.4/stable,stable,now 6.4-12 all [installed,upgradable to: 6.4-15] pve-kernel-helper/stable,stable,now 6.3-3 all [installed,upgradable to: 6.4-15] root@ProxMox-VE / # apt autoremove Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: pve-kernel-5.4 : Depends: pve-kernel-5.4.162-1-pve but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). root@ProxMox-VE / # ^C root@ProxMox-VE / #
 
It was expected that the server would not boot after a reboot. Since I had a free node in the cluster, I decided to migrate all VM's to another node and reinstall the OS.
 

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!