I am trying to install mongodb on my Ubuntu 18.04 LTS, but it has the following error saying
You might want to run \'apt --fix-broken install\' to correct
Based on this excellent Answer: https://stackoverflow.com/a/51421152/659354
And this Page: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
The commands I used to install MongoDB 4.2
sudo apt-get purge mongo*
- Note: mongo to remove the client as well as the server.
sudo apt-get install mongodb-org
- Note: install command run after the Mongodb.org Source was added to the Apt-get sources list.