Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
share|improve this question

2 Answers 2

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.

share|improve this answer

You dont need to add the reposioty since you can just download the needed package from here

Then you can go to the downlaod directory and install it

cd /path-where-you-download-it

sudo dpkg -i mongodb-10gen_2.2.0_amd64.deb

OR

If you really want to add the repository

sudo echo "http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/10gen /binary-amd64/" >> /etc/apt/sources.list

sudo apt-get update

Then you can install monogodb

share|improve this answer
    
That's true, but without the repository you won't be made easily aware of security updates or bug fixes. –  Mark Russell Oct 13 '12 at 14:07
    
that sudo echo line won't work, because the redirect happens before the priv escalation. You need to echo $STUFF | sudo tee -a /path/to/file. –  Mark Russell Oct 13 '12 at 14:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.