[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
A better fix for this issue is available in Bionic and later and also backported to Xenial with bug 1675079. unattended-upgrades and update-manager will now remove unused kernel packages when there are other updates to be installed. I'm closing this initramfs-tools task since a fix specifically for this initramfs-tools package isn't needed now. ** Changed in: initramfs-tools (Ubuntu) Status: Fix Released => Won't Fix ** Changed in: initramfs-tools (Ubuntu) Assignee: BlaWhickte (blawhickte) => (unassigned) ** No longer affects: dpkg (Ubuntu) ** No longer affects: ubuntu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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
** Project changed: initramfs-tools => ubuntu ** No longer affects: ubuntu ** Project changed: software-center => ubuntu ** No longer affects: ubuntu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: ubuntu Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [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
THANKS FOR YOUR REPLIED. IT WAS FIXED Jarno Suni <798...@bugs.launchpad.net> 于2019年1月1日周二 下午8:39写道: > cwdruf, luckily, there are some ways. > > -- > You received this bug notification because you are a bug assignee. > 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: > New > Status in Ubuntu Software Center: > Invalid > Status in Ubuntu: > Fix Released > 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 > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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
cwdruf, luckily, there are some ways. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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
** Changed in: initramfs-tools (Ubuntu) Assignee: Julio Decima (j10a) => BlaWhickte (blawhickte) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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
** Changed in: initramfs-tools (Ubuntu) Assignee: Colin Underhill (daisybank) => Julio Decima (j10a) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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
The default boot partition size in Ubuntu 16 is way too small so having some way to remove the oldest kernel is required I think. Its very hard to change it once the disk is in use. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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
** Also affects: initramfs-tools Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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
** Project changed: initramfs-tools => ubuntu ** Changed in: ubuntu Assignee: Raul Benalcazar (raulbenalcazar24) => tim fiedler (8churchill1992) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/software-center/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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
** Changed in: initramfs-tools Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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, the command you used failed because of Bug #1678187. However it succeeded to purge many kernels and related packages. But package linux- image-extra-4.13.0-36-generic was not successfully purged technically. What does command 'dpkg -l linux-image-extra-4.13.0-36-generic' print? Anyway, you can now purge the package by 'sudo dpkg --purge linux-image- extra-4.13.0-36-generic', right? I suppose your original command purged too many packages, as it removed the linux-generic-hwe-16.04 package. You may reinstall it by 'sudo apt- get install --install-recommends linux-generic-hwe-16.04', if you want to continue to get newer kernels via updates. (https://wiki.ubuntu.com/Kernel/LTSEnablementStack#Ubuntu_16.04_LTS_- _Xenial_Xerus) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[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
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: /boot/vml
[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
** 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 Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/initramfs-tools/+bug/798414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs