1

我想获取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,因为这个网站告诉我新用户最多只能发布两个超链接。

4

1 回答 1

0

有时这可能来自您使用的来自 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

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

于 2012-11-10T05:41:22.823 回答