获取OSError:[Errno 2]下载Android源代码时没有此类文件或目录

时间:2012-06-05 06:43:36

标签: ubuntu

我正在尝试下载http://source.android.com/source/downloading.html。 根据终端中的命令写入此命令:

repo init -u https://android.googlesource.com/platform/manifest

我收到了下一个错误:

comrade@ubuntu:~/WORKING_DIRECTORY$ repo init -u https://android.googlesource.com/platform/manifest
Traceback (most recent call last):
  File "/home/comrade/bin/repo", line 700, in <module>
    main(sys.argv[1:])
  File "/home/comrade/bin/repo", line 667, in main
    _Init(args)
  File "/home/comrade/bin/repo", line 198, in _Init
    _CheckGitVersion()
  File "/home/comrade/bin/repo", line 223, in _CheckGitVersion
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

我是Ubuntu的新手,所以如果问题很无聊,我很抱歉。

1 个答案:

答案 0 :(得分:0)

问题解决了。 我没有git客户端。