Issue
I am trying to install git by the command.
sudo apt install git
Showing Error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not going to be installed
Depends: git-man (> 1:2.17.1) but it is not going to be installed
Depends: git-man (< 1:2.17.1-.) but it is not going to be installed
mongodb-org : Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
Depends: mongodb-org-tools but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Also, Tried to run the command apt --fix-broken install
but did not work.
Solution
I think that you need to see there : I use ubuntu 20.04, but it run for me.
https://linuxize.com/post/how-to-install-git-on-ubuntu-18-04/
Answered By - M E S A B O Answer Checked By - Terry (WPSolving Volunteer)