So I understand that MongoDB is not supported on Ubuntu 15.04. Many users have suggested using the debian wheezey repository and that MongoDB installs and works. However, I am not having the same luck.
I Know it was mistake to choose Ubuntu 15 and not Ubuntu 14 LTS, but have put a lot of work into building the server, and don't want to downgrade.
That being said here are the steps I used to install MongoDB.
sudo apt-get purge mongodb-org*
sudo apt-get autoremove
sudo rm /etc/apt/sources.list.d/mongodb*
echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
When I try to start mongod, I get the error bellow.
Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.
Trying to follow the instructions given in the top answer of link below, however it's not working for me.
MongoDB 2.6 does not start on Ubuntu 15.04
Also referencing the Jira for this issue
Best Answer
Okay, I think I found the problem. I completely recreated the problem you were having and then fixed it.
Run the following commands one-by-one to fully fix this issue. When you are done, the problem should be fixed and mongod will be up and running:
Select Y to install and then press enter.
The output should show the service is active