Repo android2.3 (gingerbread) Error

Source: Internet
Author: User
Tags gnupg connection reset

./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.

 

 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.