I had some problems with some software, could no install or un-install properly:
"subprocess installed post-removal script returned error exit status 2".

Tried: http://ubuntuforums.org/showthread.php?t=987251

Did not solve it for me.

Then tried: http://www.debian-administration.org/articles/251

Did not pan out, the mentioned files were empty in my case..

So finally I found: http://www.khattam.info/2009/08/04/s...tatus-2-error/

This was the one that worked for me!

Hope this helps anyone at all...