Q:

Couchdb removal

I am trying to remove couchdb in my Ubuntu Server ( 10.04 ) and I received the following error:
dpkg: error processing couchdb (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 couchdb
E: Sub-process /usr/bin/dpkg returned an error code (1)

How do i fix this?
I have tried the following commands:
sudo apt-get remove couchdb
sudo apt-get purge couchdb
sudo aptitude remove couchdb

but to no avail...

A:

I'd be more worried about how you managed to get your installation so badly wedged in the first place, myself.
Have you tried following the recommendation that dpkg gave you, and reinstalling the package to get everything into a consistent state before you try your purge again?

