Question

Unable to install mongodb on ubuntu 16.04

Posted August 15, 2016 8.4k views
MongoDBNode.jsUbuntu 16.04

Team,

I am trying to install mongodb on ubuntu 16.04 as per steps given in this link :

https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04
When I run this command it gives following message :

But its failing on the step 2 - “Installing and Verifying MongoDB”.

Some packages could not be installed bla bla bla. ....

The following packages have unmet dependencies.

mongodb-org : Depends : mongodb-org-tools but it is not going to be installed.

E: Unable to correct problems, you have help broken packages.

Can some one help me get through this. I have a screen shot of console. Let me know if you want me to send via email.

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

You didn’t follow all the steps that are a part of “Step 1” on that tutorial.

  • Hey Woet,

    Thanks for your prompt reply. I did follow all the steps from Step 1, but am doubtful about this step from step 1.

    echo “deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list

    I am not sure if it ran properly or not and that might be causing this issue. Please advise.

Submit an Answer