下载Android源代码出错,请教会是什么原因

bingfurong 2012-09-03 07:22:58
下载android源代码,在这一步出错:
repo init -u https://android.googlesource.com/a/platform/manifest

fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: HTTP error 403

一个下午都一直出错,有时候是HTTP error 113 有时候是HTTP error 403

请教一下大侠们会是什么原因
已使用goagent,大家懂得。
goagent的提示是:
127.0.0.1:33376 - - [Sep 3 19:22:00] "CONNECT gerrit.googlesource.com:443 HTTP/1.0" 200 -
127.0.0.1:33376 - - [Sep 3 19:22:00] "GET https://gerrit.googlesource.com:443/git-repo/clone.bundle HTTP/1.0" 403 -

没办法也尝试了google上面的认证:
The first step is to create a password from the password generator and to save it in ~/.netrc according to the instructions on that page.

The second step is to force authenticated access, by using the following manifest URI: https://android.googlesource.com/a/platform/manifest. Notice how the /a/ directory prefix triggers mandatory authentication. You can convert an existing client to use mandatory authentication with the following command:

但是这边修改~/.netrc,然后我在PC上没发现这个文件,就
sudo gedit ~/.netrc,然后粘贴保存,请教高手如此是否有效。

这个也尝试了
$ sudo sysctl -w net.ipv4.tcp_window_scaling=0
$ repo sync -j1
总而言之,一句话,无效!

崩溃中,请求高手、大侠们解决下
...全文
6865 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
homeph2758323 2013-04-14
  • 打赏
  • 举报
回复
解决方法: 1. 安装libssl-dev sudo apt-get install libssl-dev 2. 重新编译安装python: make distclean ./configure make sudo make install
bingfurong 2012-09-06
  • 打赏
  • 举报
回复
第二天啥都没动就好了,估计是GFW或者google的问题
bingfurong 2012-09-06
  • 打赏
  • 举报
回复
第二天啥都没动就好了,估计是GFW或者google的问题
avi9111 2012-09-04
  • 打赏
  • 举报
回复
Android那些项目
从来
几乎没有
在官网下载成功过


就算下来了都是.mk那些文件
都是民间源码比较实在
aSysBang 2012-09-04
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]

引用 1 楼 的回复:

sudo gedit ~/.netrc 这个不需要sudo
认证过了,下载也是断断续续的,自己写个“死循环”去下就可以了


可是现在repo init还没过哦,是不是跟GFW有关系啊?
[/Quote]

~/.netrc 这个不要sudo
bingfurong 2012-09-04
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]

直接不要下载了,这个都是逗你玩的,你还去下!
[/Quote]

仁兄此话何解?
LICHAOGUI525 2012-09-03
  • 打赏
  • 举报
回复
直接不要下载了,这个都是逗你玩的,你还去下!
bingfurong 2012-09-03
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

sudo gedit ~/.netrc 这个不需要sudo
认证过了,下载也是断断续续的,自己写个“死循环”去下就可以了
[/Quote]

可是现在repo init还没过哦,是不是跟GFW有关系啊?
aSysBang 2012-09-03
  • 打赏
  • 举报
回复
sudo gedit ~/.netrc 这个不需要sudo
认证过了,下载也是断断续续的,自己写个“死循环”去下就可以了

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧