curl: (6) Couldn't resolve host 'android.git.kernel.org'
来源:互联网 发布:淘宝宝贝怎么被删除了 编辑:程序博客网 时间:2024/05/22 07: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
- android popwindow 解决opengl层叠上面的ui被覆盖的现象
- Runtime.getRuntime()
- 配置V0.8_概述及目录
- 在运行注册DataSnap服务器类时发布provider
- ATL布幔下的秘密之窗口类的秘密
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- C开发环境的数据长度
- Android Dialog 设置透明
- C#实现图片翻转
- Wifi学习
- (转)再谈突破TCP-IP过滤/防火墙进入内网(icmp篇)
- HTML5 GAME West Fighting / 西途决斗 框架说明
- 源代码要到这里找
- PE文件格式分析及修改