Kernel.org hacked – how to get Android(安卓)repo?
最近下载android源码报错误如下:
- curl:(7)couldn'tconnecttohost和
[text] view plain copy
- root@localhostWORKING_DIRECTORY]#reposync
- android.git.kernel.org[0:130.239.17.13]:errno=Connectionrefused
- android.git.kernel.org[0:199.6.1.173]:errno=Connectionrefused
- android.git.kernel.org[0:2001:6b0:e:4017:1972:112:1:0]:errno=Networkisunreachable
- android.git.kernel.org[0:2001:500:60:10:1972:112:1:0]:errno=Networkisunreachable
- fatal:unabletoconnectasocket(Networkisunreachable)
- error:Cannotfetchplatform/bionic
原因是Kernel.org hacked .所以提供下载方法
1.curl"http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo"> ~/bin/repo
chmod a+x ~/bin/repoPATH=~/bin:$PATH
mkdir WORKING_DIRECTORYcd WORKING_DIRECTORYrepo init -u git://codeaurora.org/platform/manifest.git -b gingerbreadrepo 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 repositoryhas 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:
[text] view plain copy- [root@localhostWORKING_DIRECTORY]#reposync
- android.git.kernel.org[0:130.239.17.13]:errno=Connectionrefused
- android.git.kernel.org[0:199.6.1.173]:errno=Connectionrefused
- android.git.kernel.org[0:2001:6b0:e:4017:1972:112:1:0]:errno=Networkisunreachable
- android.git.kernel.org[0:2001:500:60:10:1972:112:1:0]:errno=Networkisunreachable
- fatal:unabletoconnectasocket(Networkisunreachable)
- error:Cannotfetchplatform/bionic
or:
[text] view plain copy- [root@localhost~]#curlhttps://android.git.kernel.org/repo>~/bin/repo
- %Total%Received%XferdAverageSpeedTimeTimeTimeCurrent
- DloadUploadTotalSpentLeftSpeed
- 00000000--:--:--0:00:01--:--:--0
- curl:(7)couldn'tconnecttohost
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 fromkernel.orgmy blog (please,enclose the URL address in double quotes):
curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repochmod a+x ~/bin/repoPATH=~/bin:$PATH
Download the Android repository
Now, you can safely download the repository, like so:
mkdir WORKING_DIRECTORYcd WORKING_DIRECTORYrepo init -u git://codeaurora.org/platform/manifest.git -b gingerbreadrepo sync
and start the development…
更多相关文章
- android技术开发例子,解析以及源码集锦
- android技术开发例子,解析以及源码集锦
- Android(安卓)Studio com.android.support:percent 导入错误
- android实例
- android技术开发例子,解析以及源码集锦
- 让Android(安卓)Studio支持系统签名
- [Android实例] Android网络收音机项目(内含源码)
- android 编译源码不生成odex
- Android(安卓)源码编译make的错误处理