Ubuntu – How to fix sources list to get the MongoDB packages

aptmongodb

I was reading a tutorial for mongoDB and it ended up to where I should have added a deb package in Ubuntu 11.10 sources list, I was able to find /etc/apt/sources.list.d/. I need to fetch the package from the following directory:

http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/10gen/binary-amd64/

However I do not know actually what is the exact way of pointing to the package mongodb-10gen_2.2.0_amd64.deb in there.

I added the following but whenever I issue sudo apt-get update , it fails to fetch the package:

deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/10gen binary-amd64 mongodb-10gen_2.2.0_amd64

Best Answer

Going by this tutorial your /etc/apt/sources.list.d/10gen.list file should look like this:

deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

Make sure you add their repository signing key:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

Then: sudo apt-get update and sudo apt-get install mongodb-10gen.

Related Question