Not enough free disk space for /boot while upgrading from 20.04 LTS to 20.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Initially I have a 14.04 LTS system with encrypted LVM default partitioning.
It was successfully upgraded to 16.04 LTS, then to 18.04 LTS and then to 20.04 LTS by using simple do-release-upgrade command.
Now it can't upgrade from 20.04 LTS to 20.10. It complains about the disk space:
```
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating the changes
Calculating the changes
Not enough free disk space
The upgrade has aborted. The upgrade needs a total of 206 M free
space on disk '/boot'. Please free at least an additional 89,1 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.
Restoring original system state
Aborting
```
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.4.0-52-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CrashDB: ubuntu
CurrentDesktop: MATE
Date: Sun Oct 25 13:27:21 2020
InstallationDate: Installed on 2020-10-24 (0 days ago)
InstallationMedia: Ubuntu MATE 14.04.2 "Trusty Tahr" - LTS amd64 (20150323)
PackageArchitec
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to focal on 2020-10-25 (0 days ago)
mtime.conffile.
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.