Instalando o mongodb com apt-get

sudo mkdir -p /etc/apt/sources.list.d/
sudo echo ‘deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen’> /tmp/mongodb.list
sudo cp / tmp /mongodb.list /etc/apt/sources.list.d/
sudo rm /tmp/mongodb.list
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv 7F0CEB10
sudo apt-get update
sudo apt-get install mongodb- 10gen