./Repo init-u git: // android.git.kernel.org/platform/manifest.git-B gingerbread
Traceback (most recent call last ):
File "./repo", line 603, in <module>
Main (SYS. argv [1:])
File "./repo", line 570, in Main
_ Init (ARGs)
File "./repo", line 184, in _ init
_ Checkgitversion ()
File "./repo", line 213, 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 directory
Solution: sudo apt-Get install Git-coretongjiang @ Tongjiang-LAPTOP :~ /Workdir/code_bak/r10.1 _ repo $. /repo init-u git: // android.git.kernel.org/platform/manifest.git-B gingerbreadgpg: Key Ring '/home/Tongjiang /. repoconfig/GnuPG/secring. gpg' created GPG: Key Ring '/home/Tongjiang /. repoconfig/GnuPG/pubring. gpg' has created GPG:/home/Tongjiang /. repoconfig/GnuPG/trustdb. GPG: built trust database GPG: Key 920f5c65: Public Key "Repo maintainer <repo@android.kernel.org>" imported GPG: Total number of processed: 1gpg: imported: 1 getting repo... from git: // android.git.kernel.org/tools/repo.gitandroid.git.kernel.org1_0: 130.239.17.12]: errno = connection timed outfatal: read error: Connection reset by peer
1. Replace git: // android.git.kernel.org in the command line with a http://android.git.kernel.org,
2. Modify the file repo
Repo_url = 'git: // android.git.kernel.org/tools/repo.git'
Repo_url = 'HTTP: // android.git.kernel.org/tools/repo.git'
3. Modify the file. repo/manifests/Default. xml and change fetch = "Git: // android.git.kernel.org/"
Fetch = "http://android.git.kernel.org /"
In this way, you can download and synchronize the android source code.