Getting latest mongo version for Ubuntu 11.04 64 bit

763 views
Skip to first unread message

mcoolin

unread,
May 14, 2011, 2:03:24 AM5/14/11
to mongod...@googlegroups.com
I tried to follow the instructions at: http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages

But I get an error when I add "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen"

Failed to fetch http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Release  Unable to find expected entry '10gen/source/Sources' in Release file (Wrong sources.list entry or malformed file)
Some index files failed to download. They have been ignored, or old ones used instead.

Are there more up to date instructions?
Am I doing something wrong?

geekbuntu

unread,
May 14, 2011, 2:27:53 AM5/14/11
to mongodb-user
i used this - it is working (so far) for me:
http://crashcourse.ca/content/getting-started-mongodb-under-ubuntu

On May 14, 2:03 am, mcoolin <mcoo...@techie.com> wrote:
> I tried to follow the instructions at:http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages
>
> <http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages>But I get an
> error when I add "debhttp://downloads-distro.mongodb.org/repo/ubuntu-upstart
> dist 10gen"
>
> Failed to fetchhttp://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Re...

Sam Millman

unread,
May 14, 2011, 6:28:53 AM5/14/11
to mongod...@googlegroups.com
Just go to the download page and download stable, extract it to a Linux directory, make a deamon to load and your done.

--
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.


Sam Millman

unread,
May 14, 2011, 6:33:34 AM5/14/11
to mongod...@googlegroups.com
In fact you don't need a deamon if you want it to not load at startup you can just run:

./mongo-1.6.x(whatever)/bin/mongod

Otherwise just make a deamon to load that deamon.

So to recap:

1. Go here: http://www.mongodb.org/downloads and download the one that matches your linux distro.
2. Extract to a directory (home folder will do)
3. Run by entering: ./mongo-1.6.x(whatever)/bin/mongod
4. Open Shell by running: ./mongo-1.6.x(whatever)/bin/mongo

Done.

mcoolin

unread,
May 14, 2011, 7:05:00 AM5/14/11
to mongod...@googlegroups.com
Thanks tried these instructions:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
$ sudo apt-add-repository "deb http://downloads.mongodb.org/distros/ubuntu 10.4 10gen"
$ sudo apt-get update
$ sudo apt-get install mongodb-snapshot
Get these errors
Ign http://us.archive.ubuntu.com natty-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com natty-updates/universe Translation-en
Fetched 4,699 B in 3s (1,322 B/s)
W: Failed to fetch http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Release  Unable to find expected entry '10gen/source/Sources' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://downloads.mongodb.org/distros/ubuntu/dists/10.4/Release  Unable to find expected entry '10gen/source/Sources' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
mike@ubuntu:~/Desktop/Link to yap/app$ sudo apt-get install mongodb-snapshot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mongodb-snapshot
mike@ubuntu:~/Desktop/Link to yap/app$ 

It looks like the link is bad.

mcoolin

unread,
May 14, 2011, 7:22:26 AM5/14/11
to mongod...@googlegroups.com
Well I have it now. But it did not replace the 1.6.3 version. It does need to run with some parameters otherwise I get an error.
mike@ubuntu:~/Mongo181/mongodb-linux-x86_64-1.8.1/bin$ mongod
/usr/lib/mongodb/mongod --help for help and startup options
Sat May 14 07:21:00 MongoDB starting : pid=11956 port=27017 dbpath=/data/db/ 64-bit 
Sat May 14 07:21:00 db version v1.6.3, pdfile version 4.5
Sat May 14 07:21:00 git version: nogitversion
Sat May 14 07:21:00 sys info: Linux allspice 2.6.24-28-server #1 SMP Wed Aug 18 21:17:51 UTC 2010 x86_64 BOOST_LIB_VERSION=1_42
Sat May 14 07:21:00 exception in initAndListen std::exception: dbpath (/data/db/) does not exist, terminating
Sat May 14 07:21:00 dbexit: 

Sat May 14 07:21:00 shutdown: going to close listening sockets...
Sat May 14 07:21:00 shutdown: going to flush oplog...
Sat May 14 07:21:00 shutdown: going to close sockets...
Sat May 14 07:21:00 shutdown: waiting for fs preallocator...
Sat May 14 07:21:00 shutdown: closing all files...
Sat May 14 07:21:00     closeAllFiles() finished

Sat May 14 07:21:00 dbexit: really exiting now

It still looks like the old version :((


Sam Millman

unread,
May 14, 2011, 7:46:45 AM5/14/11
to mongod...@googlegroups.com
ah make a new folder where it says: /data/db/

Then sudo the command to open mongo again

Sorry forgot about that

Sam Millman

unread,
May 14, 2011, 7:47:41 AM5/14/11
to mongod...@googlegroups.com
You can also change the db path to somewhere you dont have to sudo to by doing: --dbpath=./data (It might have an underscore, can't remember).

Sam Millman

unread,
May 14, 2011, 7:51:24 AM5/14/11
to mongod...@googlegroups.com
"Sat May 14 07:21:00 MongoDB starting : pid=11956 port=27017 dbpath=/data/db/ 64-bit 
Sat May 14 07:21:00 db version v1.6.3, pdfile version 4.5"

Oh thats weird.

hmmm...

Are you sure mongod runs the one in that folder and not the global mognod which is your old db?

try: "sudo ./mongod" in that folder after making a new db folder then we know whether or not it is the install or the Db files.
Reply all
Reply to author
Forward
0 new messages