Ubuntu 下安装Git时遇到的问题 - You might want to run 'apt-get -f install' to correct these

在Ubuntu下通过apt-get安装Git时,报出的问题:

# apt-get install git
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:
 curl : Depends: libcurl3-gnutls (= 7.47.0-1ubuntu2) but 7.35.0-1ubuntu2.6 is to be installed
 git : Depends: liberror-perl but it is not going to be installed
       Depends: git-man (> 1:1.9.1) but it is not going to be installed
       Depends: git-man (< 1:1.9.1-.) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
在联网的环境下,按提示执行 apt-get -f install 进行软件修正。

然后再执行安装:

# apt-get install git

你可能感兴趣的:(ubuntu,git)