【问题标题】:Repo init can not succeed because of GnuTLS error由于 GnuTLS 错误,Repo init 无法成功
【发布时间】:2012-11-10 04:03:14
【问题描述】:

我想获取Android的源代码。浏览互联网上的一些博客,推荐使用“repo init”。

那我就用了,但是因为下面的错误是不可能的。

android@ubuntu]~/WORKING_DIRECOTRY$ repo init -u xxxxxxxxxxxxxxxxxx

Get https://gerrit.googlesource.com/git-repo
error:GnuTLS recv error (-9): A TLS packet with unexpected length was received while accessing  https://gerrit.googlesource.com/git-repo/info/refs?service=git-upload-pack
fatal:HTTP request failed

我在“repo init -u”之后写了Android源URL,但是我写不出来URL 因为这个网站告诉我新用户最多只能发布两个超链接。

【问题讨论】:

    标签: android git ssl repository gnutls


    【解决方案1】:

    有时这可能来自您使用的来自 Google gerrit 源的 Repo 版本。我现在用的是1.18。

    您使用的是哪个版本的 Ubuntu? Google 建议您使用 10.04 或 10.10

    尝试重新同步您的 /bin/repo 二进制文件和 Python 安装。

    http://source.android.com/source/downloading.html
    

    我知道,如果我将 repo 添加到本地 .bashrc PATH 中,与将其添加到 /etc/bash.bashrc 相比,它会给我带来问题

    sudo gedit /etc/bash.bashrc 
    
    Adding this to the bottom: 
    PATH=$PATH:$HOME/bin
    

    对于安装程序,他们也忘记了这个小包(你需要用它来编译)

    sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so
    

    有关您的环境和安装的库的更多信息会有所帮助。

    【讨论】:

      猜你喜欢
      • 2018-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-20
      • 2012-04-28
      • 2013-04-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多