MongoDB - Ubuntu 15.04 missing packages

I have updated my Ubuntu 14.04 to the latest 15.04. Since then Mongo has not been able to escape. can run the command mongo

and it will report the version and so on, but the server won't start: sudo service mongod start

as usual.

When I ran: sudo apt-get install -y mongodb-org

with error in the screenshot below:

Screen Shot

I cleaned mongo completely and installed again following the instructions from here. However, when I ran sudo apt-get update

, I noticed the following packages were 404. See screenshot below.

Second Screenshot

If anyone could shed some light on this, would it be great?

+3


source to share


4 answers


There is currently no build for Ubuntu 15.04. Check this page for all builds: https://www.mongodb.org/downloads#development



+4


source


Following the instructions on this page http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

but with a minor change to the second step 2. Create a list file for MongoDB :

echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

      



I put trusty (codename for Ubuntu 14.04 LTS) instead of $ (lsb_release -sc) which gives the bright name as codename for 15.04

Now I see that @Nail Lonergan has already commented on the echo path change ...

+7


source


After a bunch of problems, finally this is how I installed it,

Ubuntu 15.04

apt-get update
apt-get dist-upgrade
apt-get install -y mongodb
sudo apt-get install upstart-sysv
sudo service mongodb status

      

if not working

sudo service mongodb start

      

Install PHP driver

sudo apt-get install php5-dev
sudo apt-get install build-essential
sudo pecl install mongo

      

+1


source


https://sonnguyen.ws/install-mongodb-mongo-php-in-ubuntu/

sudo apt-get install mongodb

ps -ef|grep mongo

sudo pecl install mongo

sudo apt-get install php5-dev php5-cli php-pear

      

0


source







All Articles