[Touch-packages] [Bug 798414] Re: update-initramfs should produce a more helpful error message when there isn't enough free space--or provide an automatic tool for removal of old files

2018-08-11 Thread Tex Arcana
I just ran into this bug, tried a suggestion from here
(https://askubuntu.com/questions/89710/how-do-i-free-up-more-space-in-
boot) which resulted in multiple errors, and me being sent here.

It seems to me that this should be taken care of automatically by the
kernel with the upgrading process.



Terminal output of the above suggested method:



XX@XXX-System-Product-NameX-XXX:~$ uname -r
4.15.0-29-generic
XX@XXX-System-Product-NameXX-XXX:~$ dpkg -l 
linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r 
| cut -f1,2 -d"-"` | grep -e '[0-9]'
linux-headers-4.13.0-36
linux-headers-4.13.0-36-generic
linux-headers-4.13.0-38
linux-headers-4.13.0-38-generic
linux-headers-4.13.0-39
linux-headers-4.13.0-39-generic
linux-headers-4.13.0-45
linux-headers-4.13.0-45-generic
linux-headers-4.15.0-24
linux-headers-4.15.0-24-generic
linux-headers-4.15.0-30
linux-headers-4.15.0-30-generic
linux-image-4.13.0-36-generic
linux-image-4.13.0-38-generic
linux-image-4.13.0-39-generic
linux-image-4.13.0-45-generic
linux-image-4.15.0-24-generic
linux-image-4.15.0-30-generic
X@X-System-Product-Name-XXX:~$ dpkg -l 
linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r 
| cut -f1,2 -d"-"` | grep -e '[0-9]' | xargs sudo apt-get -y purge
[sudo] password for XXX: 
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode intel-microcode iucode-tool libllvm5.0 libllvm5.0:i386
  linux-modules-4.15.0-24-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-generic-hwe-16.04* linux-headers-4.13.0-36*
  linux-headers-4.13.0-36-generic* linux-headers-4.13.0-38*
  linux-headers-4.13.0-38-generic* linux-headers-4.13.0-39*
  linux-headers-4.13.0-39-generic* linux-headers-4.13.0-45*
  linux-headers-4.13.0-45-generic* linux-headers-4.15.0-24*
  linux-headers-4.15.0-24-generic* linux-headers-4.15.0-30*
  linux-headers-4.15.0-30-generic* linux-headers-generic-hwe-16.04*
  linux-image-4.13.0-36-generic* linux-image-4.13.0-38-generic*
  linux-image-4.13.0-39-generic* linux-image-4.13.0-45-generic*
  linux-image-4.15.0-24-generic* linux-image-4.15.0-30-generic*
  linux-image-extra-4.13.0-36-generic* linux-image-extra-4.13.0-38-generic*
  linux-image-extra-4.13.0-39-generic* linux-image-extra-4.13.0-45-generic*
  linux-image-generic-hwe-16.04* linux-modules-extra-4.15.0-24-generic*
  linux-modules-extra-4.15.0-30-generic*
0 upgraded, 0 newly installed, 27 to remove and 13 not upgraded.
After this operation, 1,830 MB disk space will be freed.
(Reading database ... 424923 files and directories currently installed.)
Removing linux-generic-hwe-16.04 (4.15.0.30.52) ...
Removing linux-headers-4.13.0-36-generic (4.13.0-36.40~16.04.1) ...
Removing linux-headers-4.13.0-36 (4.13.0-36.40~16.04.1) ...
Removing linux-headers-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
Removing linux-headers-4.13.0-38 (4.13.0-38.43~16.04.1) ...
Removing linux-headers-4.13.0-39-generic (4.13.0-39.44~16.04.1) ...
Removing linux-headers-4.13.0-39 (4.13.0-39.44~16.04.1) ...
Removing linux-headers-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
Removing linux-headers-4.13.0-45 (4.13.0-45.50~16.04.1) ...
Removing linux-headers-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Removing linux-headers-4.15.0-24 (4.15.0-24.26~16.04.1) ...
Removing linux-headers-generic-hwe-16.04 (4.15.0.30.52) ...
Removing linux-headers-4.15.0-30-generic (4.15.0-30.32~16.04.1) ...
Removing linux-headers-4.15.0-30 (4.15.0-30.32~16.04.1) ...
Removing linux-image-extra-4.13.0-36-generic (4.13.0-36.40~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-36-generic 
/boot/vmlinuz-4.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-36-generic 
/boot/vmlinuz-4.13.0-36-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-36-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.13.0-36-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.13.0-36-generic (--purge):
 subprocess installed post-removal script returned error exit status 1
Removing linux-image-4.13.0-36-generic (4.13.0-36.40~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-36-generic 
/boot/vmlinuz-4.13.0-36-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-36-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-36-generic 
/boot/vmlinuz-4.13.0-36-generic
Generating grub configuration file ...
Found linux image: 

[Touch-packages] [Bug 798414] Re: update-initramfs should produce a more helpful error message when there isn't enough free space--or provide an automatic tool for removal of old files

2018-08-11 Thread Tex Arcana
** Summary changed:

- update-initramfs should produce a more helpful error message when there isn't 
enough  free space
+ update-initramfs should produce a more helpful error message when there isn't 
enough  free space--or provide an automatic tool for removal of old files

-- 
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 message when
  there isn't enough  free space--or provide an automatic tool for
  removal of old files

Status in initramfs-tools:
  Confirmed
Status in Ubuntu Software Center:
  Invalid
Status in dpkg package in Ubuntu:
  Invalid
Status in initramfs-tools package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: initramfs-tools

  When installing a kernel, /boot may become full during execution of
  post-installation script typically when update-initramfs is creating
  or updating an initrd.img file. This is resulting in kernel
  installation error.  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

  Ideal behavior:

  Give a more helpful error message when this unfortunate situation
  occurs so that user can fix the broken system and keep it going.

  Workaround:

  As the bug reporting system forwards user to this bug report, such 
instructions can be given here:
  https://help.ubuntu.com/community/RemoveOldKernels

To manage notifications about this bug go to:
https://bugs.launchpad.net/initramfs-tools/+bug/798414/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp