tags:

views:

243

answers:

2

Hi all I have followed the instructions on the Android website on how to download the latest android source code files but it gives errors when i run this command:

repo init -u git://android2.git.kernel.org/platform/manifest.git

It gives the following error:

Getting repo ... from git://android.git.kernel.org/tools/repo.git android.git.kernel.org[0: 199.6.1.176]: errno=Connection refused android.git.kernel.org[0: 130.239.17.12]: errno=Connection refused fatal: unable to connect a socket (Connection refused)

On checking forums for its resolution, i was told that port 9418 was being blocked. I use Ubuntu 10.04 and ensured that the firewall wasnt blocking the port and also enabled the port and the above IP addresses. I also spoke to the networking peeps who ensured that no traffic from the internet is being blocked. I would be glad if i could get directions on how to proceed next.

Many thanks as you respond.

Saheed.

A: 

It looks like android repo server busy, your trying from which location?

rkm
Trying from Nigeria, could this be a hindrance? Thanks.
A: 

Ok, i fixed this. Download Corkscrew, using "sudo apt-get install corkscrew" I had earlier created and added a bin directory under my home directory which also contains the repo script. Create a "git-proxy" script and add the following:

!/bin/sh

exec corkscrew 67.202.81.240 8080 $*

The ip address can be got from a website that provides free proxy address on the internet. The website is listed here: http://spys.ru/en/

After that, execute the following command: git config --global core.gitproxy '~/bin/git-proxy'

Re-run repo init -u git://android.git.kernel.org/platform/manifest.git

Then run repo sync.

Saheed.