$ sudo apt install git
[sudo] password for wh:
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:
cypher-shell : Breaks: neo4j (< 3.1.4) but 2.1.5 is to be installed
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
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
do as what it said
but do not type in only apt --fix-broken install
add ‘sudo’ before it
then everything come to normal