当我尝试在 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
有时我们的系统可能不是最新的,无法接收安装,因此我们可以更新:
更新包信息:
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)升级系统软件包和修复过程中破包:
sudo apt-get -f dist-upgrade
Run Code Online (Sandbox Code Playgroud)只修复损坏的包:
sudo apt-get -f install
Run Code Online (Sandbox Code Playgroud)| 归档时间: |
|
| 查看次数: |
49355 次 |
| 最近记录: |