I'm trying to install the stable release of the v2.0 branch according to http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/, and ran into the following error at the Install Packages step:
$ sudo apt-get install mongodb20-10gen
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/35.3 MB of archives.
After this operation, 85.7 MB of additional disk space will be used.
(Reading database ... 36574 files and directories currently installed.)
Unpacking mongodb20-10gen (from .../mongodb20-10gen_2.0.7_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/mongodb20-10gen_2.0.7_i386.deb (--unpack):
trying to overwrite '/usr/bin/mongoimport', which is also in package mongodb-clients 1:2.0.4-1ubuntu2
E: Sub-process /usr/bin/dpkg returned an error code (1)
I got it to install after removing mongodb-clients. Thought I should report this in case there's a way to automate the upgrade, of if the docs can be updated.