How to remove all Couchdb versions in Ubuntu 10.04 (server)? ( after multiple installs )

I have done multiple installs of CouchDB using sudo aptitude install couchdb sudo ap-get install couchdb

and more recently based on the instructions found at L http://wiki.apache.org/couchdb/Installing_on_Ubuntu

May I know how do I uninstall or remove all the above installations?

Best Regards. +++++++++++++++++++UPDATE++++++++++++++++++++++++

I've tried running the following commands:

apt-get remove couchdb
apt-get purge couchdb

but received the following errors:

(Reading database ... 39814 files and directories currently installed.)
Removing couchdb ...
invoke-rc.d: initscript couchdb, action "stop" failed.
dpkg: error processing couchdb (--remove):
 subprocess installed pre-removal script returned error exit status 1
invoke-rc.d: initscript couchdb, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 couchdb
E: Sub-process /usr/bin/dpkg returned an error code (1)

May I know how do i fix this?

ON issuing the command : dpkg -l | grep couchdb I received the following response:

rF  couchdb                          0.10.0-1ubuntu2                            RESTful document oriented database, system D
iF  couchdb-bin                      0.10.0-1ubuntu2                            RESTful document oriented database, programs

How do i uninstall CouchDB ? I think there's some file corruption?


Everything you install with apt-get aptitude or dpkg can be uninstalled using the same tool.

As The NinjaSysadmin pointed before use apt-get remove couchdb to uninstall

You can also use apt-get purge couchdb to remove config and other files.

To see if you have couchdb installed search for it using dpkg -l | grep couchdb


You should stop couchdb before remove it : $ sudo /etc/init.d/couchdb stop Then $ sudo apt-get remove couchdb $ sudo apt-get purge couchdb