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
You need to first uninstall the mongodb, you can use:
sudo apt-get purge mongodb-org*
After this, install mongodb through the following commands:
sudo apt-get install mongodb
And then update:
sudo apt-get update
You are done with the installation of mongodb. You can check it by using the below command:
mongo --version