3

I tried to install mongodb last week for an unrelated project and now whenever I try to sudo apt-get install any other package I get an error that says:

 * Starting database mongodb            [fail]

How did my mongodb install mess with apt-get, how can I resolve the issues so I can successfully install packages?

  • I can't answer your question, but apt-get and aptitude are two different programs. – Byte Commander Nov 4 '15 at 20:01
  • 1
    Uninstall mongodb? – A.B. Nov 4 '15 at 20:02
1

Try removing MongoDB:

sudo apt-get remove mongodb

Alternatively, check to see what the MongoDB logs say about the reason for the failure to start and fix it so the failure no longer happens. The logs are usually to be found in /var/log/mongodb/mongodb.log. Some common problems:

You may have other issues, of course, but these are good starting points.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.