I get the following every time I try to install anything. It always seems to install OK but I'd rather not get the errors, what am I supposed to do to fix this? All I'd like to know really is where to start looking, I'd like a push in the right direction rather than a complete solution.

Or if anyone could just point me to the correct link? I've spent hours looking for it and not found anything that really applies to me.

My guess is that I should look at the repositories?

subprocess installed post-installation script returned error exit status 2

dependency problems - leaving unconfigured

dependency problems - leaving unconfigured

dependency problems - leaving unconfigured

dependency problems - leaving unconfigured

dependency problems - leaving unconfigured

dependency problems - leaving unconfigured

subprocess installed post-installation script returned error exit status 1
  • Can you post the complete output and the commands you experienced the problems with? Output of "sudo df -h" would be interesting to see if theres enough space - maybe the boot partition is out of space. – user115639 Apr 9 '16 at 3:52
  • There are a few solutions if you lookup the errors "initramfs-tools subprocess installed post-installation script returned error exit status 1" && "subprocess installed post-installation script returned error exit status 2" see this: askubuntu.com/questions/517857/… && this: unix.stackexchange.com/questions/109698/… – user115639 Apr 9 '16 at 3:52
  • I'm using kbuntu Discover...not exactly sure where to look for the complete output. If I knew that it's quite possible that you're right. Is there somewhere I need to look....I'm guessing Discover is just a nice interface to dpkg anyway...system log? – Ian Cheetham Apr 10 '16 at 18:02
  • menu -> system -> konsole – user115639 Apr 10 '16 at 18:05
  • Scrub that...guess what? gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-4.2.0-34-generic with 1. dpkg: error processing package initramfs-tools (--configure): subprocess installed post-installation script returned error exit status 1 No apport report written because MaxReports is reached already Grrr! Not sure why my fmtg is all up the spout but I think you'll get the gist. I assume, since there always used to be enough space in my boot dir that I need to do some housekeeping? Any suggestions for best option? – Ian Cheetham Apr 10 '16 at 18:10

Answer to the above question is/was that old kernels filled up the boot partition. How do I resize my /boot partition?

Basic command to check free space on your mounted partitions: sudo df -h

Below information is an extremely shortened version of: How do I remove old kernel versions to clean up the boot menu?

The basic commands in this situation:

uname -r - check which kernel is in use

sudo apt-get autoremove - remove old kernel

A normal kernel upgrade should work flawlessly as follows:

sudo apt-get update; sudo apt-get dist-upgrade; sudo apt-get autoremove

If for any reason something goes wrong during a kernel upgrade may read this: How to restore a system after accidentally removing all kernels? and eventually this: Removed Kernel by mistake [duplicate] && How can I boot with an older kernel version?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.