Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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 binary-amd64 mongodb-10gen_2.2.0_amd64
share|improve this question

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

deb dist 10gen

Make sure you add their repository signing key:

sudo apt-key adv --keyserver --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


If you really want to add the repository

sudo echo " /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


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.