I have a setup upgraded from 20.04 to 22.04 and now I'm trying to
upgrade to 24.04.

The setup complains I needed 900mb EXTRA free on /boot. The partition is
only 700mb, and it's true, it filled up lots of times over the years,
since old kernels don't seem to be cleaned up automatically!


Anyway I could free up 537mb and these are the steps I did to hack the system 
into upgrading nonetheless:

* start do-release-upgrade
* Ctrl-Z when the installer prints it's unpacking files. (you might have to try 
a few times but for me it worked on first try)
* Find the file /tmp/ubuntu-release-upgrader-<random hash>/DistUpgradeCache.py 
(a random directory name will be used) and find the line where space_in_boot is 
assigned. Change it to space_in_boot = 1 and save.
* the 'fg' shell command to resume the installer. It should not complain this 
time.

I was able to upgrade perfectly fine this way. But make sure there
aren't any kernel packages installed that will regenerate the initramfs
during upgrade (just rm'ing the initramfs files in /boot can cause
this).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1988299

Title:
  Can't upgrade from 20.04 to 22.04 due to extreme space requirement for
  /boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1988299/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to