← Back to team overview

touch-packages team mailing list archive

[Bug 798414] Re: update-initramfs should produce a more helpful error when there isn't enough free space

 

This is in response to Thomas A.F. Thorne's entry # 63. Hi there, so I went ahead and tried to download bikeshed as you suggested and the download failed, and at the end this error message came up... E: sub-process /usr/bin/dpkg returned and error code (1). I'm assuming the download failed because of dependency issues created by the bug we are all discussing here. I went ahead and tried to run bikeshed just in case and this error came up... E: invalid operation purge-old-kernals.... smack my head! I just realized my problem, I was misspelling kernel. I just ran bikeshed with the command and it just told me it's preparing to remove 831 mg..., just entered command df -h and /boot mounted on point is at 56%, down from 99%. Looks like a success so far, not sure what the error codes were all about earlier. I'm going to update to see what happens... and the update was successful. 
   I'm sure someone will get a laugh out this little play by play. So is this something that I'll need to do wherever this bug rears it's head, or is this a one-time deal?  Thank you for taking the time to post this solution.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/798414

Title:
  update-initramfs should produce a more helpful error when there isn't
  enough  free space

Status in initramfs-tools:
  Confirmed
Status in Ubuntu:
  Fix Released
Status in initramfs-tools package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: initramfs-tools

  When generating a new initramfs there is no check for available free
  space, subsequently its possible for update-initramfs to fail due to a
  lack of free space.  This is resulting in package installation
  failures for initramfs-tools.  For example:

  Setting up initramfs-tools (0.98.8ubuntu3) ...
  update-initramfs: deferring update (trigger activated)
  Processing triggers for initramfs-tools ...
  update-initramfs: Generating /boot/initrd.img-2.6.38-8-generic

  gzip: stdout: No space left on device
  E: mkinitramfs failure cpio 141 gzip 1
  update-initramfs: failed for /boot/initrd.img-2.6.38-8-generic
  dpkg: error processing initramfs-tools (--configure):
   subprocess installed post-installation script returned error exit status 1

  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/initramfs-tools/+bug/798414/+subscriptions