Git无法为我的Windows WSL环境成功安装

时间:2019-10-21 15:12:59

标签: bash git windows-subsystem-for-linux

我尝试为本地Windows子系统Linux发行版安装git。我正在使用Linux 4.4.0-17763-Microsoft x86_64(Ubuntu 16.04.6 LTS)。

agrant@ANGUS-GRANT:/mnt/c/Users/agrant/Documents/GitHub$ sudo apt-get install git
[sudo] password for agrant:
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1.6).
0 to upgrade, 0 to newly install, 0 to remove and 3 not to upgrade.
agrant@ANGUS-GRANT:/mnt/c/Users/agrant/Documents/GitHub$ git --version
The program 'git' is currently not installed. You can install it by typing:
sudo apt install git
agrant@ANGUS-GRANT:/mnt/c/Users/agrant/Documents/GitHub/lens-starter-st$ echo $PATH
/home/agrant/bin:/home/agrant/.local/bin:/home/agrant/.nvm/versions/node/v12.10.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/ProgramData/Oracle/Java/javapath:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files/PuTTY:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/dotnet:/mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files (x86)/Kaspersky Lab/Kaspersky Endpoint Security for Windows:/mnt/c/Go/bin:/mnt/c/Users/agrant/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/agrant/AppData/Local/atom/bin:/mnt/c/Users/agrant/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/agrant/AppData/Roaming/npm:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Users/agrant/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/agrant/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/agrant/go/bin:/mnt/c/Users/agrant/AppData/Local/Programs/Fiddler:/mnt/c/Users/agrant/go/bin:/snap/bin

但是当我尝试运行它时,它说未“安装”,请告知?

0 个答案:

没有答案