WSL中如何使用git citool
$ git citool
git: 'citool' is not a git command. See 'git --help'.
The most similar command is
difftool
[@ ~]$ sudo apt-get install git
[sudo] password for fly:
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.25.1-1ubuntu3.5).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
gitkraken : Depends: libatk-bridge2.0-0 (>= 2.5.3) but it is not going to be installed
Depends: libatk1.0-0 (>= 2.2.0) but it is not going to be installed
Depends: libatspi2.0-0 (>= 2.9.90) but it is not going to be installed
Depends: libcups2 (>= 1.7.0) but it is not going to be installed
Depends: libgbm1 (>= 12.0.0~0) but it is not going to be installed
Depends: libgtk-3-0 (>= 3.9.10) but it is not going to be installed
Depends: libpango-1.0-0 (>= 1.14.0) but it is not going to be installed
Depends: libxdamage1 (>= 1:1.1) but it is not going to be installed
Depends: libxkbcommon0 (>= 0.5.0) but it is not going to be installed
Depends: libnotify4 but it is not going to be installed
Depends: xdg-utils but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
[fly@ThinkPad-FLY ~]$ 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:2.17.1-.) but 1:2.25.1-1ubuntu3.5 is to be installed
E: Unable to correct problems, you have held broken packages.
[fly@ThinkPad-FLY ~]$ sudo apt-get install git-gui
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:
git-gui : Depends: git (< 1:2.17.1-.) but 1:2.25.1-1ubuntu3.5 is to be installed
Recommends: gitk but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
[fly@752fac4b02e9 ~]$ git citool
application-specific initialization failed: no display name and no $DISPLAY environment variable
Error in startup script: invalid command name "tk_messageBox"
while executing
"tk_messageBox -icon error -type ok -title "git-gui: fatal error" -message $err"
invoked from within
"if {[catch {package require Tcl 8.4} err]
|| [catch {package require Tk 8.4} err]
} {
catch {wm withdraw .}
tk_messageBox \
-icon error \
-typ..."
(file "/usr/lib/git-core/git-citool" line 33)