Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
34
rated 0 times [  34] [ 0]  / answers: 1 / hits: 4828  / 2 Years ago, mon, july 4, 2022, 5:55:22

Getting the following error when trying to upgrade to 22.04



The upgrade has aborted. The upgrade needs a total of 616 M free space
on disk '/boot'. Please free at least an additional 144 M of disk
space on '/boot'. You can remove old kernels using 'sudo apt
autoremove' and you could also set COMPRESS=xz in
/etc/initramfs-tools/initramfs.conf to reduce the size of your
initramfs.



I have done all the usual suspects removing old kernels, etc., but that amount of space takes up nearly all of the Ubuntu default boot drive space so no amount of freeing space is going to let that go through.


The giant increase in size requirements leads me to believe this is some form of error. Short of decrypting and re-sizing partitions is there anything I can try here?


More From » upgrade

 Answers
2

This is a known issue caused by using a different compression method for the initramfs. The new default, lz4 compression, is faster to decompress/read at boot time, but takes a lot of space in /boot to create. This means people with smaller /boot partitions won't have enough space to generate the initramfs.


The workaround is to change the compression algorithm to xz as recommended (or some other algorithm that takes less space).


To do this, edit /etc/initramfs-tools/initramfs.conf and set COMPRESS=xz, as stated in the error message. Afterward, you should be able to upgrade.


[#238] Tuesday, July 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
initiallartebeest

Total Points: 24
Total Questions: 118
Total Answers: 105

Location: Venezuela
Member since Thu, Jul 15, 2021
3 Years ago
initiallartebeest questions
;