Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am manually installing a .deb file (which I don't maintain) onto my Ubuntu system.

The package has a post-installation script which erroneously fails, and therefore the package is considered broken.

dpkg: error processing astah-community (--configure):
 subprocess installed post-installation script returned error exit status 127

This package is actually installed correctly and is working fine (the post-installation script is incorrect). When I perform any apt operation on my system it now complains that the package is broken; how can I resolve this?

This doesn't help:

sudo dpkg -i /path/to/the.deb --force-all
share|improve this question
up vote 10 down vote accepted

You can edit the post install script at /var/lib/dpkg/info/astah-community.postinst to comment out a portion that is failing. Or you can just rename/remove that file to prevent dpkg from running it at all.

Once you've done one of those you can use dpkg --configure astah-community to have dpkg retry the configuration process, and hopefully have that succeed.

share|improve this answer
Yes, that worked! Thankyou. – Mar 14 '13 at 19:55
Thanks, worked for me too, just don't try to do it with aptitude, for some reason it keeps replacing my edited postinst script. But apt-get worked for me. – soger May 13 at 9:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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