无法在 Ubuntu 16.04 LTS 上安装 Git

Cha*_*ber 10 apt git 16.04

当我尝试在 Ubuntu 16.04 上安装 Git 时,出现错误。我用来安装git的命令是:

sudo apt-get install git
Run Code Online (Sandbox Code Playgroud)

我遇到的错误是:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f 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.7.4) but it is not going to be installed
        Depends: git-man (< 1:2.7.4-.) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
specify a solution).
Run Code Online (Sandbox Code Playgroud)

即使我使用了建议的命令 (apt-get -f install) 来安装 git,错误仍然存​​在。任何有想法解决这个问题的人?

Geo*_*sen 17

有时我们的系统可能不是最新的,无法接收安装,因此我们可以更新: