update-manager's free space calculator for /boot seems insufficient

Bug #798462 reported by Brian Murray
684
This bug affects 89 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

Binary package hint: update-manager

There are a number of initramfs-tools apport package bug reports from distribution upgrades regarding errors with a lack of free space on /boot. Looking at DistUpgrade/DistUpgradeCache.py update-manager uses the following when calculating how much space the boot partition will need:

KERNEL_INITRD_SIZE = 19 * 1024 * 1024

The number 19 should probably be increased or as slangasek suggests "a much better predictor would be to check the size of the initrd for the current kernel".

WORKAROUND:

Remove unused kernels using computer janitor or manually free space on your partition containing the /boot file system.

description: updated
Changed in update-manager (Ubuntu):
assignee: nobody → Ubuntu Foundations Team (ubuntu-foundations-team)
importance: Undecided → Medium
status: New → Triaged
Colin Watson (cjwatson)
Changed in update-manager (Ubuntu):
assignee: Ubuntu Foundations Team (ubuntu-foundations-team) → Michael Vogt (mvo)
Michael Vogt (mvo)
Changed in update-manager (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.151.8

---------------
update-manager (1:0.151.8) oneiric; urgency=low

  * DistUpgrade/DistUpgradeViewGtk.py:
    - set DPKG_UNTRANSLATED_MESSAGES to force untranslated dpkg
      terminal messages for easier package failure duplication
      detection
  * DistUpgrade/DistUpgradeCache.py:
    - when calculating the size of the space required in /boot use
      the size of the currently running kernel as the base and add
      a small safety margin (LP: #798462).
  * import new apt-btrfs-snapshot to fix crash for certain fstab
    entries (LP: #806065)
 -- Michael Vogt <email address hidden> Wed, 06 Jul 2011 17:23:26 +0200

Changed in update-manager (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Herbert (herbert-fischer) wrote :

I got this error during a release upgrade to 11.10 and I'm trying to recover the upgrade process. I deleted a few old kernels to free up some space on /boot and run "dpkg --configure -a".

Is this sufficient to end the upgrade process?

Revision history for this message
Emanuele (emanuele-marenco) wrote : Re: [Bug 798462] Re: update-manager's free space calculator for /boot seems insufficient

for me it was sufficient to to free up somespace on /boot drive

2011/10/13 Herbert <email address hidden>

> I got this error during a release upgrade to 11.10 and I'm trying to
> recover the upgrade process. I deleted a few old kernels to free up some
> space on /boot and run "dpkg --configure -a".
>
> Is this sufficient to end the upgrade process?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (852766).
> https://bugs.launchpad.net/bugs/798462
>
> Title:
> update-manager's free space calculator for /boot seems insufficient
>
> Status in “update-manager” package in Ubuntu:
> Fix Released
>
> Bug description:
> Binary package hint: update-manager
>
> There are a number of initramfs-tools apport package bug reports from
> distribution upgrades regarding errors with a lack of free space on
> /boot. Looking at DistUpgrade/DistUpgradeCache.py update-manager uses
> the following when calculating how much space the boot partition will
> need:
>
> KERNEL_INITRD_SIZE = 19 * 1024 * 1024
>
> The number 19 should probably be increased or as slangasek suggests "a
> much better predictor would be to check the size of the initrd for the
> current kernel".
>
> WORKAROUND:
>
> Remove unused kernels using computer janitor or manually free space on
> your partition containing the /boot file system.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/798462/+subscriptions
>

Revision history for this message
George von Fuchs (gvf0935) wrote :

Sorry, I can not be of much help here.     From what little I know seems like you tried to do the right thing.Hope it worked

--- On Thu, 10/13/11, Herbert <email address hidden> wrote:

From: Herbert <email address hidden>
Subject: [Bug 798462] Re: update-manager's free space calculator for /boot seems insufficient
To: <email address hidden>
Date: Thursday, October 13, 2011, 11:25 AM

I got this error during a release upgrade to 11.10 and I'm trying to
recover the upgrade process. I deleted a few old kernels to free up some
space on /boot and run "dpkg --configure -a".

Is this sufficient to end the upgrade process?

--
You received this bug notification because you are subscribed to a
duplicate bug report (777584).
https://bugs.launchpad.net/bugs/798462

Title:
  update-manager's free space calculator for /boot seems insufficient

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/798462/+subscriptions

Revision history for this message
Tom Weiss (twicey) wrote :

Free disk space was my issue.

Revision history for this message
RichardN (richardn) wrote :

I also had this occur on an upgrade to 12.04B2. It probably was a disk space issue, I removed the old kernel and reinstalled. It would help a lot if it was possible to have old kernels automatically deleted.

Revision history for this message
Gallomimia (gallomimia) wrote :

Can you describe what procedure is taken to "reinstall"? Simply running do-release-upgrade a second does nothing, so how do I ensure the installer goes back to clean up its mess?

Revision history for this message
Neocult (neocult-net) wrote :

If do-release-upgrade is don't doing anything the system has already proceed that far, that sources.list files are replaced and the packet manager is configured for new packages. Therefore just run "dpkg --configure -a" to continue with the installation.

To post a comment you must log in.