简体   繁体   English

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

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

I want to get the source code of Android. 我想获取Android的源代码。 To browse some blogs in the Internet, "repo init" is recommended. 要浏览Internet上的某些博客,建议使用“ repo init”。

Then I use it, but it is impossible because of the following error. 然后,我使用它,但是由于以下错误,它是不可能的。

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

I wrote the Android source URL after "repo init -u", but I could not write the URL because this site tell me that new users can only post a maximum of two hyperlinks. 我在“ repo init -u”之后写了Android源URL,但是我无法写URL,因为此站点告诉我,新用户最多只能发布两个超链接。

Sometimes this can be from the Version of Repo that you are using from The Google gerrit source. 有时,这可能来自您在Google gerrit来源中使用的Repo版本。 1.18 is what I am using now. 我现在正在使用1.18。

What version of Ubuntu are you using? 您正在使用哪个版本的Ubuntu? Google recommends that you use 10.04 or 10.10 Google建议您使用10.04或10.10

Try to resync your /bin/repo binary and your Python install. 尝试重新同步/ bin / repo二进制文件和Python安装。

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

I know that if I added repo to just my local .bashrc PATH it gave me problems compared to adding it to the /etc/bash.bashrc 我知道,如果仅将repo添加到本地.bashrc PATH中,与将其添加到/etc/bash.bashrc相比,它给我带来了问题

sudo gedit /etc/bash.bashrc 

Adding this to the bottom: 
PATH=$PATH:$HOME/bin

For the Setup, they also forgot this little bundle (which you will need to compile with) 对于安装程序,他们还忘记了这个小捆绑包(您需要使用该捆绑包进行编译)

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

Some more information on your Environment and the Libs installed would be helpful. 有关您的环境和所安装的库的更多信息会有所帮助。

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

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