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
cd /etc/apt/sources.list.d
remove files related to mongodb
sudo apt update
This solved it for me.