1

I seem to be unable to install gitk. Can anyone help me decipher the below:

$ 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 Answers1

1

You probably installed a newer version of git manually, because your version of git is too recent for the gitk package that's in the repository.

You can either downgrade git, or manually install a newer version of gitk.

Jan
  • 12,291
  • 3
  • 32
  • 38
  • according to https://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools#gitk_.28distributed_with_Git.29 gitk is distributed with git (and no link is provided). However I get the message that The program gitk is currently not installed. – Marcus Junius Brutus Sep 03 '14 at 21:08
  • All debian-based distributions have gitk as a separate package, as does ubuntu. I don't know if it is installed if you install git from source and I don't know how you installed git in the first place. But you wouldn't try to install it if it was already on your system, would you? – Jan Sep 03 '14 at 21:10
  • Where do you get the message The program gitk is currently not installed? – Wilf Sep 03 '14 at 21:44
  • @Wilf when I type gitk in the command line – Marcus Junius Brutus Sep 03 '14 at 22:17