[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
Tex Arcana
798414 at bugs.launchpad.net
Sat Aug 11 19:47:11 UTC 2018
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:
========================================================
XXXXXXXXXX at XXXXXXXXXXX-System-Product-NameXXXXXXXXX-XXX:~$ uname -r
4.15.0-29-generic
XXXXXXXXXX at XXXXXXXXXXX-System-Product-NameXXXXXXXXXX-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
XXXXXXXXX at XXXXXXXXX-System-Product-NameXXXXXXXXXXXX-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 XXXXXXXXXXXXXXX:
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: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.15.0-29-generic
Found initrd image: /boot/initrd.img-4.15.0-29-generic
Found linux image: /boot/vmlinuz-4.15.0-24-generic
Found initrd image: /boot/initrd.img-4.15.0-24-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found initrd image: /boot/initrd.img-4.13.0-39-generic
Found linux image: /boot/vmlinuz-4.13.0-38-generic
Found initrd image: /boot/initrd.img-4.13.0-38-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
done
Purging configuration files for 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
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-36-generic /boot/vmlinuz-4.13.0-36-generic
Removing linux-image-extra-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-38-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.15.0-29-generic
Found initrd image: /boot/initrd.img-4.15.0-29-generic
Found linux image: /boot/vmlinuz-4.15.0-24-generic
Found initrd image: /boot/initrd.img-4.15.0-24-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found initrd image: /boot/initrd.img-4.13.0-39-generic
Found linux image: /boot/vmlinuz-4.13.0-38-generic
Found initrd image: /boot/initrd.img-4.13.0-38-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
done
Purging configuration files for linux-image-extra-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
Removing linux-image-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-38-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.15.0-29-generic
Found initrd image: /boot/initrd.img-4.15.0-29-generic
Found linux image: /boot/vmlinuz-4.15.0-24-generic
Found initrd image: /boot/initrd.img-4.15.0-24-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found initrd image: /boot/initrd.img-4.13.0-39-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
done
Purging configuration files for linux-image-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
Removing linux-image-extra-4.13.0-39-generic (4.13.0-39.44~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-39-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.15.0-29-generic
Found initrd image: /boot/initrd.img-4.15.0-29-generic
Found linux image: /boot/vmlinuz-4.15.0-24-generic
Found initrd image: /boot/initrd.img-4.15.0-24-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found initrd image: /boot/initrd.img-4.13.0-39-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
done
Purging configuration files for linux-image-extra-4.13.0-39-generic (4.13.0-39.44~16.04.1) ...
Removing linux-image-4.13.0-39-generic (4.13.0-39.44~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-39-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.15.0-29-generic
Found initrd image: /boot/initrd.img-4.15.0-29-generic
Found linux image: /boot/vmlinuz-4.15.0-24-generic
Found initrd image: /boot/initrd.img-4.15.0-24-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
done
Purging configuration files for linux-image-4.13.0-39-generic (4.13.0-39.44~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
Removing linux-image-extra-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-45-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.15.0-29-generic
Found initrd image: /boot/initrd.img-4.15.0-29-generic
Found linux image: /boot/vmlinuz-4.15.0-24-generic
Found initrd image: /boot/initrd.img-4.15.0-24-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
done
Purging configuration files for linux-image-extra-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
Removing linux-image-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-45-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.15.0-29-generic
Found initrd image: /boot/initrd.img-4.15.0-29-generic
Found linux image: /boot/vmlinuz-4.15.0-24-generic
Found initrd image: /boot/initrd.img-4.15.0-24-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
done
Purging configuration files for linux-image-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
Removing linux-modules-extra-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Purging configuration files for linux-modules-extra-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Removing linux-image-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-24-generic
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.15.0-29-generic
Found initrd image: /boot/initrd.img-4.15.0-29-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
done
Purging configuration files for linux-image-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
rmdir: failed to remove '/lib/modules/4.15.0-24-generic': Directory not empty
Removing linux-image-generic-hwe-16.04 (4.15.0.30.52) ...
Removing linux-modules-extra-4.15.0-30-generic (4.15.0-30.32~16.04.1) ...
Purging configuration files for linux-modules-extra-4.15.0-30-generic (4.15.0-30.32~16.04.1) ...
Removing linux-image-4.15.0-30-generic (4.15.0-30.32~16.04.1) ...
I: /vmlinuz is now a symlink to boot/vmlinuz-4.15.0-29-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.15.0-29-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-30-generic
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11442: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11442: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11455: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11455: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11468: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11468: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11481: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11481: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11542: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11542: /usr/sbin/grub-probe
Found linux image: /boot/vmlinuz-4.15.0-29-generic
Found initrd image: /boot/initrd.img-4.15.0-29-generic
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11779: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on vgs invocation. Parent PID 11779: /usr/sbin/grub-probe
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-24-generic (deleted)) leaked on lvs invocation. Parent PID 11952: /bin/sh
Found Windows 7 (loader) on /dev/sdb1
done
Purging configuration files for linux-image-4.15.0-30-generic (4.15.0-30.32~16.04.1) ...
rmdir: failed to remove '/lib/modules/4.15.0-30-generic': Directory not empty
Errors were encountered while processing:
linux-image-extra-4.13.0-36-generic
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-ec.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-ec.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-ec.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-earth-ec.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-earth-ec.list:3 and /etc/apt/sources.list.d/google-earth.list:1
E: Sub-process /usr/bin/dpkg returned an error code (1)
XXXXXXXXX at XXXXXXXXX-System-Product-NameXXXXXXXXXXX-XXX:~$
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg 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
More information about the foundations-bugs
mailing list