Magador
Magador

Reputation: 644

Unable to locate package mongodb-org on Debian

I'm trying to install MongoDB 3.0 on my Debian server (wheezy) 32 bit and I can't figure out what's gone wrong despite the fact that I followed the MongoDB install Tutorial:

apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/debian "$(lsb_release -sc)"/mongodb-org/3.0 main" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list
apt-get update
apt-get install -y mongodb-org

The fourth command still failing even if the others are successful:

E: Unable to locate package mongodb-org

I've found subjects of this matter on Stackoverflow but it was on Ubuntu so, ...

EDIT:

lsb_release -sc gives wheezy

NO APT-GET SOLUTION:

Get the Linux 32-bit Legacy version of MongoDB here:

wget https://fastdl.mongodb.org/linux/mongodb-linux-i686-3.0.2.tgz
tar zxvf mongodb-linux-i686-3.0.2.tgz
cp mongodb-linux-i686-3.0.2.tgz/bin/* /usr/bin

Don't forget to change ownership/permissions.

Upvotes: 6

Views: 9706

Answers (4)

kernel.k
kernel.k

Reputation: 1

I used a normal root command apt-get install mongodb-org without the -y option P.S: that works for Debian 9 too

Upvotes: -3

Dante
Dante

Reputation: 772

I litle late but:

wget http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.4/main/binary-amd64/{package_vesion}
sudo dpkg -i {package_version}

But I could not found the x86 version, only x86_64.

Upvotes: 1

vovchisko
vovchisko

Reputation: 2239

sudo apt-get install -y mongodb

I spent 2 hrs on the same problem on clean Debian x64. just try. this.

Upvotes: 9

Faheem Mitha
Faheem Mitha

Reputation: 6326

As you can verify by visiting

http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.0/main/binary-i386/

there are no packages there, in contrast to

http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.0/main/binary-amd64/

I do not know why this is the case, but one option is to build the packages from source in your i386 machine.

Upvotes: 1

Related Questions