computer@computer:~/android/froyo$ repo init -u https://android.googlesource.com/platform/manifest -b froyo
Traceback (most recent call last):
File "/home/computer/bin/repo", line 685, in <module>
main(sys.argv[1:])
File "/home/computer/bin/repo", line 652, in main
_Init(args)
File "/home/computer/bin/repo", line 184, in _Init
_CheckGitVersion()
File "/home/computer/bin/repo", line 209, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or direc
我收到此错误。如何解决此错误?
提前致谢。
答案 0 :(得分:1)
你可能没有安装过git。确保在cmd提示符下键入git
。
如果您的git安装有问题,请使用
将其删除 apt-get remove git-core
并使用
重新安装 apt-get install git-core