Reprinted from: http://www.higis.org/2012/04/25/ubuntu-install-mongodb/
Installing MongoDB on Ubuntu can be installed directly via the sudo apt-get install MongoDB, but Ubuntu's source version is much lower than the actual MongoDB version. So it is necessary to get the latest version from MongoDB 10gen to install, the installation process mainly need to add 10gen path to the Apt-get source list and key acquisition. The installation steps are as follows:
1, edit the/etc/apt/sources.list, add the following content:
Deb Http://downloads-distro.mongodb.org/repo/ubuntu-upstart Dist 10gen
2. Generate GPG key. Run the following command:
sudo apt-key adv--keyserver keyserver.ubuntu.com--recv 7F0CEB10
3. Run Apt-get Update, update the source, and then install the latest version of MongoDB.
sudo apt-get updatesudo apt-get install Mongodb-10gen
4, after installation, enter MONGO to see if the service started properly.
This article fixed link: http://www.higis.org/2012/04/25/ubuntu-install-mongodb/| Hi,gis
MongoDB Latest Version Installation