繁体   English   中英

由于GnuTLS错误,回购初始化无法成功

[英]Repo init can not succeed because of GnuTLS error

我想获取Android的源代码。 要浏览Internet上的某些博客,建议使用“ 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,因为此站点告诉我,新用户最多只能发布两个超链接。

有时,这可能来自您在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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM