Even removal of the all contents of /boot folder does not help:
```
The upgrade has aborted. The upgrade needs a total of 238 M free
space on disk '/boot'. Please free at least an additional 13,5 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.
Currently I have:
``` img-5.4. 0-52-generic img-5.4. 0-52-generic 5.4.0-52- generic img-5.4. 0-52-generic 5.4.0-52- generic 5.4.0-52- generic 5.4.0-52- generic map-5.4. 0-52-generic _multiboot. bin
$ ls /boot/ --human-readable -lt
total 103M
-rw-r--r-- 1 root root 86M окт 25 12:43 initrd.
drwxr-xr-x 6 root root 1,0K окт 25 12:42 grub
lrwxrwxrwx 1 root root 27 окт 25 11:56 initrd.img.old -> initrd.
lrwxrwxrwx 1 root root 24 окт 25 11:56 vmlinuz.old -> vmlinuz-
lrwxrwxrwx 1 root root 27 окт 25 02:41 initrd.img -> initrd.
lrwxrwxrwx 1 root root 24 окт 25 02:41 vmlinuz -> vmlinuz-
drwx------ 2 root root 12K окт 24 16:18 lost+found
-rw------- 1 root root 12M окт 15 13:33 vmlinuz-
-rw-r--r-- 1 root root 233K окт 15 13:28 config-
-rw------- 1 root root 4,6M окт 15 13:28 System.
-rw-r--r-- 1 root root 179K авг 18 13:46 memtest86+.bin
-rw-r--r-- 1 root root 181K авг 18 13:46 memtest86+.elf
-rw-r--r-- 1 root root 181K авг 18 13:46 memtest86+
$ sudo du -sh /boot/
110M /boot/
```
Setting xz compression:
``` tools/initramfs .conf | grep COMPRESS
$ cat /etc/initramfs-
# COMPRESS: [ gzip | bzip2 | lz4 | lzma | lzop | xz ]
COMPRESS=xz
```
does not help either.
Even removal of the all contents of /boot folder does not help:
``` tools/initramfs .conf to reduce the size of your
The upgrade has aborted. The upgrade needs a total of 238 M free
space on disk '/boot'. Please free at least an additional 13,5 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-
initramfs.
```
You have to take such scenarios into account.