Can't upgrade from 20.04 to 22.04 due to extreme space requirement for /boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
I'm attempting to upgrade from 20.04 to 22.04 and my installation uses full disk encryption, so I have a separate partition for /boot.
The size of the /boot partition was set by the installer for 20.04 (to 704 MiB) and I currently have 329 MiB free after removing old kernels with apt autoremove:
$ df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 704M 324M 329M 50% /boot
When attempting to upgrade to 22.04 it fails with:
The upgrade has aborted. The upgrade needs a total of 787 M free
space on disk '/boot'. Please free at least an additional 442 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.
So it claims to need more space than the total size of the partition (so presumably no amount of compressing initramfs will be enough!), which as noted above is the default size for /boot chosen by the 20.04 installer.
Another instance of this issue has been raised here: https:/
---
ProblemType: Bug
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-04-25 (859 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
NonfreeKernelMo
Package: ubuntu-
ProcVersionSign
Tags: focal dist-upgrade
Uname: Linux 5.15.0-46-generic x86_64
UpgradeStatus: Upgraded to focal on 2022-08-31 (1 days ago)
UserGroups: adm cdrom dip docker lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | New → Incomplete |
description: | updated |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | Incomplete → Triaged |
importance: | Undecided → Medium |
tags: | added: foundations-triage-discuss |
tags: |
added: foundations-todo removed: foundations-triage-discuss |
Changed in ubuntu-release-upgrader (Ubuntu): | |
assignee: | nobody → Julian Andres Klode (juliank) |
Changed in ubuntu-release-upgrader (Ubuntu): | |
assignee: | Julian Andres Klode (juliank) → nobody |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1988299
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/ /wiki.ubuntu. com/ReportingBu gs.
(Please also check your original bug description; you state the installer for Ubuntu 22.04 LTS set the size [of /boot], but your bug report implies you installed Ubuntu 20.04 LTS (not 22.04) & are trying to release-upgrade to 22.04)