使用 git 1.8.3.2 安装 gitk

使用 git 1.8.3.2 安装 gitk

我似乎无法安装gitk。有人能帮我解释一下以下内容吗:

$ git --version
git version 1.8.3.2
$ sudo apt-get install gitk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 gitk : Depends: git (< 1:1.7.9.5-.) but 1:1.8.3.2-0ppa1~precise1 is to be installed
 E: Unable to correct problems, you have held broken packages.

答案1

您可能手动安装了较新版本的 git,因为您的 git 版本对于存储库中的 gitk 包来说太新了。

您可以降级 git,或者手动安装较新版本的 gitk。

相关内容