I had some problems with some software, could no install or un-install properly:
"subprocess installed post-removal script returned error exit status 2".
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...