Installing MongoDB on Ubuntu, overwrite '/usr/bin/mongoimport' error

If you are installing MongoDB on Ubuntu, http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

and you get a “cannot overwrite ‘/usr/bin/mongoimport’” error.

You need to uninstall the mongodb-clients package first:

sudo apt-get remove mongodb-clients

Re-install the MongoDB package.  It should now work :O)

Author | Miles Davenport

Career programmer, who designs, assembles, fixes, and supports customers, software and systems.