This is caused by insufficient disk space on /boot partition where kernels are stored, excerpts from the attachments:
update-initramfs: Generating /boot/initrd.img-4.4.0-139-generic cat: write error: No space left on device Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 241965 241595 0 100% /boot Sometimes, running "sudo apt-get autoremove" will clean up old kernels and allow subsequent upgrade attempts to succeed. In some situations manual intervention is needed, see more about that at https://help.ubuntu.com/community/RemoveOldKernels. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1801744 Title: package linux-image-4.4.0-139-generic 4.4.0-139.165 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1801744/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs