MongoDB installation in Ubuntu 14.04 Failed

Main picture Main · Mar 26, 2015 · Viewed 13.8k times · Source

I followed the steps as mentioned in the official site of MongoDB.

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
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
sudo apt-get update
sudo apt-get install -y mongodb-org

Running the last command I get an error:

E: Unable to locate package mongodb-org

Please help.

Answer

Main picture Main · Mar 27, 2015

Just try

sudo apt-get install -y mongodb