=====repo sync start===== error: Failed connect to android.googlesource.com:443; Connection refused

最近要搞android移植相关的东西 ,需要下载Android4.2的源码包 ,结果被伤的不轻啊 。。。。。。坑啊。。。。

连续下了两天都没下载成功,用自动脚本下也还是,不停得报这个破错误 。

尝试过各种改 包括 修改/etc/hosts,也还是一个鸟样 ~~~

不经意间替换了fetch的URL路径,终于可以下载了 ,虽然网速有点坑爹。。。。但至少可以下 。。。

 

/.repo/manifests# gedit default.xml

部分内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="aosp"
fetch="git://Android.git.linaro.org/" />

//把原来的android.googlesource.com换成这个Android.git.linaro.org
<remote name="android4sam"
fetch="https://github.com/Android4SAM/" />//这里原先是git://....
<default revision="refs/tags/android-4.2.2_r1.1"
remote="aosp"
sync-j="4" />

我的/etc/hosts/如下 ,以下IP实际测试过,目前是ok的。

 

127.0.0.1 localhost
127.0.1.1 vm
74.125.31.82 www.googlesource.com
74.125.31.82 android.googlesource.com
203.208.46.172 cache.pack.google.com
74.125.204.82 gerrit.googlesource.com

以下是控制台输入:

 

From git://Android.git.linaro.org/platform/build
* [new tag] android-cts-2.1_r2 -> android-cts-2.1_r2
* [new tag] android-cts-2.1_r3 -> android-cts-2.1_r3
* [new tag] android-cts-2.1_r4 -> android-cts-2.1_r4
* [new tag] android-cts-2.1_r5 -> android-cts-2.1_r5
remote: Counting objects: 117795, done.
remote: Compressing objects: 100% (34218/34218), done.
Receiving objects: 43% (51477/117795), 13.44 MiB | 4 KiB/s //尼玛。。。还能再慢点吗。。破网络。。

哎 。。。慢慢下吧。。。哥不急。。。

 

经测试 :将 fetch="git://Android.git.linaro.org/"改为
fetch="git://codeaurora.org" ,那速度 ,哗哗地。。。。

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值