Ubuntu 14.04 git install problem [duplicate]

after sudo apt-get install git:

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:
 git : Depends: liberror-perl but it is not installable
E: Unable to correct problems, you have held broken packages.

after sudo apt-get install liberror-perl:

Package liberror-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'liberror-perl' has no installation candidate

try

sudo apt-get update  
sudo apt-get upgrade
sudo apt-get install -f 

to meet dependencies