`
yangshen998
  • 浏览: 1240642 次
文章分类
社区版块
存档分类
最新评论

Android:android.git.kernel.org 无法访问时下载源代码的解决方法Android:android.git.kernel.org 无法访问时下载源代码的解决方法

 
阅读更多

Android:android.git.kernel.org 无法访问时下载源代码的解决方法

分类:Android334人阅读评论(0)收藏举报
今天正准备编译Android源码,根据官网的指示,首先应该执行
curl https://android.git.kernel.org/repo > ~/bin/repo

来下载repo文件,但报出如下错误:

curl: (6) Couldn't resolve host 'android.git.kernel.org'

通过浏览器访问http://android.git.kernel.org/时也被报告无法找到服务器。我就是在家里用普通的宽带上网,没有像在公司里面那样有处于防火墙之后的可能。心里面正在暗骂方某人的时候,转念一想,政府应该不会无聊到这个地步,连这个都墙。继续调查之后,发现9月分以来国外也有人遇到同样的问题。加之8月底kernel.org被黑,也可能导致android.git.kernel.org无法访问。姑且先相信是Android的服务器自己爆掉了,按如下方法,下载到源代码(来源):

  1. 1.curl"http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo">~/bin/repo
  2. 2.chmoda+x~/bin/repo
  3. 3.PATH=~/bin:$PATH
  4. 4.cdyour_download_folder
  5. 5.repoinit-ugit://codeaurora.org/platform/manifest.git-bgingerbread
  6. 6.reposync

另外,据称Android源代码在github也有保存,具体怎么弄下来不知到。如果哪天上面的方法也无效了话,可以研究一下。

今天正准备编译Android源码,根据官网的指示,首先应该执行
curl https://android.git.kernel.org/repo > ~/bin/repo

来下载repo文件,但报出如下错误:

curl: (6) Couldn't resolve host 'android.git.kernel.org'

通过浏览器访问http://android.git.kernel.org/时也被报告无法找到服务器。我就是在家里用普通的宽带上网,没有像在公司里面那样有处于防火墙之后的可能。心里面正在暗骂方某人的时候,转念一想,政府应该不会无聊到这个地步,连这个都墙。继续调查之后,发现9月分以来国外也有人遇到同样的问题。加之8月底kernel.org被黑,也可能导致android.git.kernel.org无法访问。姑且先相信是Android的服务器自己爆掉了,按如下方法,下载到源代码(来源):

  1. 1.curl"http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo">~/bin/repo
  2. 2.chmoda+x~/bin/repo
  3. 3.PATH=~/bin:$PATH
  4. 4.cdyour_download_folder
  5. 5.repoinit-ugit://codeaurora.org/platform/manifest.git-bgingerbread
  6. 6.reposync

另外,据称Android源代码在github也有保存,具体怎么弄下来不知到。如果哪天上面的方法也无效了话,可以研究一下。

分享到:
评论

相关推荐

    在win7上用git 下载安卓源代码的方法

    git下载源码的网址变成了 https://android.googlesource.com 之前的网址作废了 是不可用的:android.git.kernel.org 2013年9月验证按照附件的方法是可行的。

    kbd:https:git.kernel.orgpubscmlinuxkernelgitlegionkbd.git

    网页介面: 退房: git clone git://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.gitNLS(订单翻译) PO文件通过以下方式维护: : 执照Kbd已获得GNU通用公共许可(GPL)版本2的许可,或根据您的选择选择更...

    android内核移植之我见

    网站上(如http://www.kernel.org/)下载的最新linux内核源代码已经不包含android的专有驱动,因此建议 从google网上下下载Linux内核,android源代码浏览网站如下: http://android.git.kernel.org/

    Android SDK Search-0.3.16.zip

    名称:Android SDK Search ---------------------------------------- 版本:0.3.16 作者:http://roman.nurik.net/ 分类:开发者工具 ---------------------------------------- 概述:添加一个'ad'omnibox命令并...

    android java sources

    2010/3/6 从 android.git.kernel.org 获取的官方代码,为保证压缩包体积小...目前我没找到 eclipse 修改 android 源代码路径的方法,因此使用时需要手动解压缩到 $ANDROID_SDK/platforms/android-2.1/sources/ 目录下。

    vscode-linux-kernel:适用于Linux内核源代码的Visual Studio Code项目-linux kernel source code

    适用于Linux内核源代码的Visual Studio Code项目 确保已构建内核(至少应生成所有*.cmd文件): $ make defconfig $ make 将此存储库克隆为“ .vscode”: $ git clone git@github....

    Git-1[1].7.4-preview20110204.exe

    Git --- The stupid content tracker, 傻瓜内容跟踪器。Linus 是这样给我们介绍 Git 的。...其实 Git 的源代码中已经加入了对 Cygwin 与 MinGW 编译环境的支持并被逐步完善,对于 Windows 使用者是个福音。

    移植LVS-FULLNAT到OpenFastPathlvs-dpdk.zip

    该项目把alibaba LVS-FULLNAT移植到了OpenFastPath(base on odp-dpdk)LVS-FULLNA 源代码:https://github.com/alibaba/LVSOpenFastPath源代码:https://github.com/lvsgate/ofp.git使用:1.获取并编译...

    android_kernel_compile_tools:一些帮助从源代码编译 Android 内核的文件

    获取Android源代码: git clone https://android.googlesource.com/platform/system/core.git $ cd /path/to/android-src $ cd system/core/libmincrypt/ $ gcc -c *.c -I../include $ ar rcs libmincrypt.a *.o ...

    Git参考手册.rar

    Git 是用于 Linux内核开发的版本控制工具。...),使源代码的发布和交流极其方便。 Git 的速度很快,这对于诸如 Linux kernel 这样的大项目来说自然很重要。 Git 最为出色的是它的合并跟踪(merge tracing)能力。

    ti-linux-kernel-dev:供应商bsp ..

    当您运行任何构建脚本时,将下载内核源代码。 默认情况下,此脚本将克隆linux稳定树: : 到:$ {DIR} / ignore / linux- src: 如果您已经克隆了torvalds树,并且想节省一些硬盘空间,只需修改system.sh中的LINUX_...

    GIT安装文件取代SVN和CVS

    采用了分布式版本库的方式,不必服务器端软件支持,使源代码的发布和交流极其方便。 Git 的 速度很快,这对于诸如 Linux kernel 这样的大项目来说自然很重要。 Git 最为出色的是它的合并 跟踪(merge tracing)能力...

    Android SDK Search-crx插件

    点击此链接可从android.git.kernel.org导航到相关的Google代码搜索结果。 源代码可在下面的链接中找到:https://github.com/romannurik/AndroidSDKSearchExtension要查看更新日志以及以前的版本,请访问:...

    aquaris-M5:设备bq Aquaris M5Linux内核源代码-linux kernel source code

    设备Linux内核源代码: bq水瓶座M5 内置说明? 特定来源由分支分隔,每个版本都标有对应的编号。 首先,您应该克隆项目: $ git clone https://github.com/bq/aquaris-M5.git 之后,选择您要构建的版本: *水瓶...

    aquaris-5:bq Aquaris 5Linux内核源代码-linux kernel source code

    设备bq Aquaris 5Linux内核源代码 内置说明? 特定来源由分支分隔,每个版本都标有对应的编号。 首先,您应该克隆项目: $ git clone git@github.com:bq/aquaris-5.git 之后,选择您要构建的版本 果冻豆:1.x ...

    windows-Git-2.26.2-x64.rar

    官网经常下载不下来,放在CSDN上,方便自己也...),使源代码的发布和交流极其方便。 Git 的速度很快,这对于诸如 Linux kernel 这样的大项目来说自然很重要。 Git 最为出色的是它的合并跟踪(merge tracing)能力。

    Git-1.7.6-preview20110708(windows版)

    git是一个分布式版本控制工具 Git --- The stupid content tracker, 傻瓜内容跟踪器。...其实 Git 的源代码中已经加入了对 Cygwin 与 MinGW 编译环境的支持并被逐步完善,对于 Windows 使用者是个福音。

    实验1 Git基本操作.docx

    与常用的版本控制工具 CVS, Subversion 等不同,它采用了分布式版本库的方式,不必服务器端软件支持,使源代码的发布和交流极其方便。 Git 的速度很快,这对于诸如 Linux kernel 这样的大项目来说自然很重要。 Git ...

    aquaris-M10:设备bq Aquaris M10Linux内核源代码-linux kernel source code

    设备Linux内核源代码: bq水瓶座M10 内置说明? 特定来源由分支分隔,每个版本都标有对应的编号。 首先,您应该克隆项目: $ git clone https://github.com/bq/aquaris-M10.git 之后,选择您要构建的版本: ...

    aquaris-X5:设备bq Aquaris X5Linux内核源代码-linux kernel source code

    设备Linux内核源代码: bq水瓶座X5 内置说明? 特定来源由分支分隔,每个版本都标有对应的编号。 首先,您应该克隆项目: $ git clone https://github.com/bq/aquaris-X5.git 之后,选择您要构建的版本: *水瓶...

Global site tag (gtag.js) - Google Analytics