Install MongoDB in Ubuntu: No apport report written because MaxReports is reached already

I tried to install MongoDB in Ubuntu in the following steps:

1. sudo apt-get update

2. sudo apt-get install mongodb-10gen

And got below error:

Unpacking mongodb-10gen (from .../mongodb-10gen_2.4.8_amd64.deb) ...dpkg: error processing /var/cache/apt/archives/mongodb-10gen_2.4.8_amd64.deb (--unpack): trying to overwrite '/usr/bin/mongo', which is also in package mongodb-clients 1:2.0.4-1ubuntu2.1No apport report written because MaxReports is reached already                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)Errors were encountered while processing: /var/cache/apt/archives/mongodb-10gen_2.4.8_amd64.debE: Sub-process /usr/bin/dpkg returned an error code (1)

I fixed the error using a command: sudo apt-get autoremove

The following packages will be REMOVED:  libboost-dev libboost-filesystem1.46.1 libboost-program-options1.46.1  libboost-system1.46.1 libboost-thread1.46.1 libboost1.46-dev libpcrecpp0  mongodb-clients mongodb-dev mongodb-server0 upgraded, 0 newly installed, 10 to remove and 66 not upgraded.After this operation, 117 MB disk space will be freed.Do you want to continue [Y/n]? (Reading database ... 97462 files and directories currently installed.)Removing mongodb-dev ...Removing libboost-dev ...Removing mongodb-server ...arg: removeRemoving mongodb-clients ...Removing libboost-filesystem1.46.1 ...Removing libboost-program-options1.46.1 ...Removing libboost-system1.46.1 ...Removing libboost-thread1.46.1 ...Removing libboost1.46-dev ...Removing libpcrecpp0 ...Processing triggers for ureadahead ...ureadahead will be reprofiled on next rebootProcessing triggers for libc-bin ...ldconfig deferred processing now taking place


Try to repeat step 2 again. It works fine.
sudo service mongodb start

Comments