Not enough free disk space during update

KDE Plasma Version 6.0.5
Kernel 6.6.32
I get the following error message when I try to update.
I have 205.5 GiB of free space on my hard drive.

Total installed size: 2.1 MB
Apply transaction ? [y/N] y
Checking keyring… [58/58]
Checking integrity… [58/58]
Loading packages files… [58/58]
Checking file conflicts… [58/58]
Checking available disk space… [58/58]
Error: Partition /boot too full: 5121 blocks needed, 0 blocks free
Error: not enough free disk space
Error: Failed to commit transaction: not enough free disk space

:point_up_2:

2 Likes

How do I check it and what can be done?

At a guess you’ve got too many old kernels installed. Check and remove some old ones if you can.

2 Likes
sudo df -h /boot

If you have multiple kernel versions installed then remove one (or more) of the ones you’re not using to make space.

If not then you’ll probably have to resize your boot partition. Make a seperate topic if you need help with that.

1 Like

I had the same issue recently when trying to install kernel 6.9.2. On my /boot there’s ~130 of 512MB free. Eventually I decided to wait for the next update. Interestingly it happened AFTER I had removed two old LTS kernels some times before.
Not yet tested this update though.

beermad @ MrLavender
I guess I screwed up when I installed originally. I didn’t allocate enough space. I only had two kernel installed, and I removed the older one, and was able to update.
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 770M 275M 440M 39% /boot
Thank you guys!

You need a bigger /boot partition 1GB.

I know, but it’s too late now, isn’t?

In the end I removed another unused old LTS kernel, upgraded to 6.9 and then removed 6.8 as well.
Did kernel sizes increase lately for some reason?

Yes

There are various threads about it.

It would be good to consider whether there is a way to continue to provide space for multiple kernels.

  1. enlarge the partition with the kernel (with /boot partition)
  2. integrate the kernel into the root partition (without /boot partition)

The second option is particularly useful when btrfs is used with snapshots

:footprints:

I guess I will look into it next time I set up a fresh system.
For now I’m ok with the way it is. I have a working LTS kernel as a fallback option, an up-to-date kernel and space for another kernel line if needed.