packet inconsistency problem

Hello everyone,
I was trying to install db2 on Ubuntu, but got messed up with manual installation and Synaptic. At the moment, I find myself with a filesystem where DB2 is NOT installed ( I removed it with a sudo rm :o ) and with Synaptic still flagging db2exc as installed. The problem is that when I try to remove it via Synaptic / apt-get / dpkg it says the package is in a state of bad inconsistency (suppose this is the english translation, since I am italian and got this message in my mothertongue). Nor I can reinstall it, because it says the subprocess new script of post-removal returned error code 1 (again, this is my translation).

Can anybody help ?

Thank you in advance, bye

In your situation, it's hard to come with any very general good advice.

The tool of choice would be dpkg; any of the higher-level tools probably don't give you enough control.

Try the different --force-something flags from dpkg; sometimes that's enough to get you back on track.

Can you figure out which part of the postrm script is failing, and maybe change it so it doesn't fail?