注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

讀萬卷書,行萬里路

开心快乐的方式有很多种,寻找自己的快乐方式

 
 
 

日志

 
 

Kernel.org hacked – how to get Android repo?  

2011-09-22 21:40:46|  分类: 我的安卓 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

由于 kernel.org 遭遇 Hack,已有近一个月无法同步源码。有人说源码同步已经正常,但经数次在不同的电脑上验证,仍然无法同步。经不懈努力搜索,终于搜到一个解决方案,按照以下方案指引,终于解决 repo init time out/refused 等问题,现repo sync已经正常。

原帖出外:http://php.webtutor.pl/en/2011/09/05/kernel-org-hacked-how-to-get-android-repo/

As you may already know, kernel.org site which hosts the Android git repository has been hacked. Because of this we can’t obtain the Android source code from its servers. All attempts to do so ultimately fail with the similar response:

[hzkindy@hzkindy system]# repo sync android.git.kernel.org[0: 130.239.17.13]: errno=Connection refused android.git.kernel.org[0: 199.6.1.173]: errno=Connection refused android.git.kernel.org[0: 2001:6b0:e:4017:1972:112:1:0]: errno=Network is unreachable android.git.kernel.org[0: 2001:500:60:10:1972:112:1:0]: errno=Network is unreachable fatal: unable to connect a socket (Network is unreachable) error: Cannot fetch platform/bionic

or:

[hzkindy@hzkindy ~]# curl https://android.git.kernel.org/repo>  ~/bin/repo   
% Total % Received % Xferd Average Speed Time Time Time Current
  Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (7) couldn't connect to host

I will describe another way to get the Android source codes if you hadn’t already cloned it’s repo before kernel.org servers went down.

Prepare the environment

First, you need to download “repo” script from kernel.org my blog (please, enclose the URL address in double quotes):

curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo 
chmod a+x ~/bin/repo PATH=~/bin:$PATH

Download the Android repository

Now, you can safely download the repository, like so:

mkdir WORKING_DIRECTORY 
cd
WORKING_DIRECTORY
repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
repo sync

and start the development…

--------------------------------------------------------------------------------------------------------------------

Another solution:

http://ttyjm.blog.163.com/blog/static/864525201182922824190/


  评论这张
 
阅读(794)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017