E: Unable to locate package mongodb

7,958 views
Skip to first unread message

Rina

unread,
May 17, 2011, 8:51:31 AM5/17/11
to mongodb-user
I tried to install mongodb on Ubuntu 10.10 on my Virtual Machine.

The steps I did:
1. I Added:
deb http://downloads.mongodb.org/distros/ubuntu 10.10 10gen
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist
10gen
into /etc/apt/source.list.
2. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
3. sudo apt-get update
4. sudo apt-get install mongodb-stable
or:
sudo apt-get install mongodb-10gen

Here is the error:
E: Unable to locate package mongodb-stable
or:
E: Unable to locate package mongodb-10gen

What can be the problem?

mcoolin

unread,
May 17, 2011, 9:05:20 AM5/17/11
to mongod...@googlegroups.com
I never got this to work :(. 


I could only download it off the site. As you noted the instructions don't work.

Satyadeep Kumar

unread,
May 17, 2011, 9:39:26 AM5/17/11
to mongod...@googlegroups.com
can you try via yum 

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.



--

Dan Pasette

unread,
May 17, 2011, 11:12:17 PM5/17/11
to mongodb-user
I'm looking at the steps you listed, and it appears that you aren't
following the instructions listed in the documentation here:
http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages

For 10.10 do the following:

1. Add this line to your /etc/apt/sources.list
2. Add the public gpg key:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

3. Update aptitude repos
sudo aptitude update

4. Get mongodb
sudo apt-get install mongodb-10gen

On May 17, 9:39 am, Satyadeep Kumar <satyadoo...@gmail.com> wrote:
> can you try via yum
>
> On 17 May 2011 18:35, mcoolin <mcoo...@techie.com> wrote:
>
>
>
>
>
>
>
>
>
> > I never got this to work :(.
>
> >https://groups.google.com/d/msg/mongodb-user/CmPb2H62uG4/Rgl7u6MTlgwJ
>
> > I could only download it off the site. As you noted the instructions don't
> > work.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mongodb-user" group.
> > To post to this group, send email to mongod...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mongodb-user...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/mongodb-user?hl=en.
>
> --
> Satyadeep
> satyadoo...@gmail.com
> +91 9711475156

Rina

unread,
May 18, 2011, 12:39:33 AM5/18/11
to mongodb-user
Thank you all.
Dan, your instructions helped me.
My mistake was in the first step:
I have added the the line to /etc/apt/source.list instead of /etc/apt/
sources.list.
Now it works.

On May 17, 7:12 pm, Dan Pasette <d...@10gen.com> wrote:
> I'm looking at the steps you listed, and it appears that you aren't
> following the instructions listed in the documentation here:http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages
>
> For 10.10 do the following:
>
> 1. Add this line to your /etc/apt/sources.list
> debhttp://downloads-distro.mongodb.org/repo/ubuntu-upstartdist 10gen
Reply all
Reply to author
Forward
0 new messages