下载android源代码,在这一步出错:
repo init -u https://android.googlesource.com/a/platform/manifestfatal: 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
总而言之,一句话,无效!崩溃中,请求高手、大侠们解决下

解决方案 »

  1.   

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

  2.   


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

  3.   


    ~/.netrc 这个不要sudo 
      

  4.   

    Android那些项目
    从来
    几乎没有
    在官网下载成功过
    就算下来了都是.mk那些文件
    都是民间源码比较实在
      

  5.   

    第二天啥都没动就好了,估计是GFW或者google的问题
      

  6.   

    第二天啥都没动就好了,估计是GFW或者google的问题
      

  7.   

    解决方法:
    1. 安装libssl-dev
    sudo apt-get install libssl-dev
    2. 重新编译安装python:
    make distclean
    ./configure 
    make
    sudo make install