Ubuntu – Why can’t i install mongodb 3.0 on Ubuntu 14.04 32bit

aptinstallationmongodbUbuntu

I have followed all the official istructions listed here:

official page

In detail, i have done:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10

(seems ok)

echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

(seems ok, as the file /etc/apt/sources.list.d/mongodb-org-3.0.list is created with the right entry)

sudo apt-get update

(seems ok, as i see the repos in the list)

but when i do :

sudo apt-get install -y mongodb-org

it always says "Can't find package mongodb-org".

If i do:

sudo apt-get install -y mongodb

It works, but it doesn't install version 3.0 but version 2.4

I have tried multiple times to install 3.0 after removing / purging the 2.4 version, but with the same result: "Can't find package mongodb-org"

How can i install version 3.0 ?

EDIT

apt-cache search mongodb doesn't find anything regarding mongodb-org

This is the content of /etc/apt/sources.list.d/mongodb-org-3.0.list :

deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse

these are the lines resulting from apt-get update regarding mondodb:

Ign http://repo.mongodb.org trusty/mongodb-org/3.0 InRelease
Trovato http://repo.mongodb.org trusty/mongodb-org/3.0 Release.gpg
Trovato http://repo.mongodb.org trusty/mongodb-org/3.0 Release
Trovato http://repo.mongodb.org trusty/mongodb-org/3.0/multiverse i386 Packages
Ign http://repo.mongodb.org trusty/mongodb-org/3.0/multiverse Translation-it_IT
Ign http://repo.mongodb.org trusty/mongodb-org/3.0/multiverse Translation-it
Ign http://repo.mongodb.org trusty/mongodb-org/3.0/multiverse Translation-en 

I'am running on Ubuntu 14.04 LTS 32 bit. Maybe the repo is only for x64? If it's the case, how can i install mongodb 3.0 on a 32 bit machine ? (i haven't seen anything regarding this dinstinction in the docs )

EDIT 2

So, it seems there are no 32 packages in those repos.
Now, where can i find them? I think it's stange as the docs ( official docs ) specify only this repo, and nothing is said about 32/64 bit differences.

Best Answer

There are no 32 bits packages in those repositories:

Check for yourself, amd64:

wget -O - \
  http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.1/multiverse/binary-amd64/Packages.gz \
  2>/dev/null | zless | grep ^Package
Package: mongodb-org-unstable
Package: mongodb-org-unstable-mongos
Package: mongodb-org-unstable-server
Package: mongodb-org-unstable-shell
Package: mongodb-org-unstable-tools

Whereas for i686, no packages are returned.

wget -O - \
  http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.1/multiverse/binary-i386/Packages.gz 2>/dev/null

Or if you prefer clicks, open a browser to that location:

xdg-open http://repo.mongodb.org/apt/ubuntu/dists/trusty/mongodb-org/3.1/multiverse/binary-i386/

Also, check this one.

Moreover, the vendor discourages the use of 32 bit binaries for production use, probably due to its limitations:

For production deployments, always run MongoDB on 64-bit systems.