The ubuntu10.10 system is installed in the vmvm on a new computer. The system is used to synchronize the source code of gingerbread. When you execute the following command:
Repo init-u git: // android.git.kernel.org/platform/manifest.git
The terminal prompts the following error:
Traceback (most recent call last ):
File "/home/helei/bin/repo", line 603, in <module>
Main (SYS. argv [1:])
File "/home/helei/bin/repo", line 570, in Main
_ Init (ARGs)
File "/home/helei/bin/repo", line 184, in _ init
_ Checkgitversion ()
File "/home/helei/bin/repo", line 213, in _ checkgitversion
Proc = subprocess. popen (CMD, stdout = subprocess. Pipe)
File "/usr/lib/python2.6/subprocess. py", line 623, in _ init __
Errread, errwrite)
File "/usr/lib/python2.6/subprocess. py", line 1141, in _ execute_child
Raise child_exception
Oserror: [errno 2] No such file or directory
The reason is that git is not installed. Run the following command:
Sudo apt-Get install git
Sudo apt-Get install Git-core
Finally, I will get an answer from allenshao's blog. The link is http://allenshao.javaeye.com/blog/669059. Thank you allenshao.