Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 505
Magador Avatar asked Apr 11 '15 21:04

Magador


People also ask

Can we install MongoDB using a command line?

You can use the MongoDB Command Line Interface ( mongocli ) to deploy and manage MongoDB clusters in Atlas, Cloud Manager, and Ops Manager. For operating system and MongoDB service version requirements, see Compatibility.


1 Answers

sudo apt-get install -y mongodb

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

like image 114
vovchisko Avatar answered Sep 21 '22 10:09

vovchisko