curl: (6) Couldn't resolve host 'android.git.kernel.org'
来源:互联网 发布:微信三级分销商城源码 编辑:程序博客网 时间:2024/05/16 18:44
$ curl https://android.git.kernel.org/repo > ~/bin/repo
curl: (6) Couldn't resolve host 'android.git.kernel.org'
原因是因为android.git.kernel.org网站被黑了,所以无法从该网站下载repo和android源代码了。
因此我们只能想办法从其他地方下载了.
我们可以从https://www.codeaurora.org/网站下载android源码。
具体方法如下:
下载repo并设置环境变量
$ curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo"> ~/bin/repo$ chmod a+x ~/bin/repo
$ PATH=~/bin:$PATH
下载android源码
$ mkdir WORKING_DIRECTORY
$cd WORKING_DIRECTORY
$ repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
$ repo sync
PS: repo只是一个脚本工具。你可以从任何地方下载repo工具,例如
http://code.google.com/p/git-repo/
但是如何要下载android源代码的话,需要把repo文件打开,把文件开头的
REPO_URL='git://android.git.kernel.org/tools/repo.git'
的这个地址换成其他可以下载源代码的地址久可以了,上面下载的repo就是把
REPO_URL='git://android.git.kernel.org/tools/repo.git'
替换成
REPO_URL='git://codeaurora.org/tools/repo.git'
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- 下载Android源码 curl: (6) Couldn't resolve host 'android.git.kernel.org' 国内解决办法
- curl: (6) Couldn't resolve host 'android.git.kernel.org' 国内解决办法【转载】
- Couldn't resolve host 'android.git.kernel.org'
- PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
- Couldn't resolve host 'mirrorlist.centos.org
- CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法
- curl: (6) Couldn't resolve host getaddrinfo(3) failed 80 解疑
- when build docker, Couldn't resolve host 'mirrorlist.centos.org'"
- yum-Couldn't resolve host 'mirrorlist.centos.org'
- 解决Couldn't resolve host 'mirrorlist.centos.org
- 解决Couldn't resolve host 'mirrorlist.centos.org
- 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
- Couldn’t resolve host ‘magento-community’
- "Couldn't resolve host 'mirrors.aliyun.com'"
- yum install 出现 Couldn't resolve host
- TCP UDP
- Android学习及如何利用android来赚钱
- 慎用ActiveReport的ARCustomForm自定义纸张尺寸
- 乔布斯前传:混沌岁月塑造独特性格
- 11-10-17
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- demo1 小小评
- uva 10003 Cutting Sticks
- TortoiseSVN v1.7
- 资中筠:要重建知识分子对“道统”的担当
- unix环境高级编程-4.3-文件类型
- 程序员的整洁代码之道
- Servlet注意+ServletConfig+ServletContext
- 不用api,vb自带函数得到文件名或扩展名