簡體   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