android.git.kernel.org 無法訪問後 repo失敗的完美解決方案

來源:互聯網
上載者:User
自kernel.org遭受攻擊,android.git.kernel.org夢見了電子羊,到kernel.org linux.com linux.org
停機維護,android.git.kernel.org直接連網域名稱解析都關了

這導致repo拚命想串連android.git.kernel.org,然後一次一次失敗

但是repo還得繼續用啊,預設情況下 都是從 android.git.kernel.org  下載全套的repo工具集到.repo/repo目錄下,再用這套工具集去下載git伺服器上的源碼庫。

網上有個辦法 http://carltao.blog.51cto.com/856514/667469 但我確實沒找出作者修改了什麼地方

於是繼續google,總算被我找到完美的解決辦法了

那就是 git-repo項目,從開發人員郵箱就知道這是google官方的項目

託管在 googlecode上 所有repo工具集也是存放在googlecode伺服器上 因此 完美解決android.git.kernel.org 無法訪問的導致repo失敗的問題

步驟:

1.下載repo-1.12

2. 更名
$ mv repo-1.12 repo

3.增加執行許可權

$ chmod a+x repo

4.拷貝到/user/bin目錄

$ sudo cp repo /user/bin

完工

5.如果repo init時出現 https 443 ssl錯誤,那麼需要將https更改為http

$ sudo vi /user/bin/repo

將第五行

REPO_URL='https://code.google.com/p/git-repo/'

改為

REPO_URL='http://code.google.com/p/git-repo/'

繼續享受repo 吧


zz: http://www.bashell.net/archives/repo-without-android-git-kernel-org.html

自kernel.org遭受攻擊,android.git.kernel.org夢見了電子羊,到kernel.org linux.com linux.org
停機維護,android.git.kernel.org直接連網域名稱解析都關了

這導致repo拚命想串連android.git.kernel.org,然後一次一次失敗

但是repo還得繼續用啊,預設情況下 都是從 android.git.kernel.org  下載全套的repo工具集到.repo/repo目錄下,再用這套工具集去下載git伺服器上的源碼庫。

網上有個辦法 http://carltao.blog.51cto.com/856514/667469 但我確實沒找出作者修改了什麼地方

於是繼續google,總算被我找到完美的解決辦法了

那就是 git-repo項目,從開發人員郵箱就知道這是google官方的項目

託管在 googlecode上 所有repo工具集也是存放在googlecode伺服器上 因此 完美解決android.git.kernel.org 無法訪問的導致repo失敗的問題

步驟:

1.下載repo-1.12

2. 更名
$ mv repo-1.12 repo

3.增加執行許可權

$ chmod a+x repo

4.拷貝到/user/bin目錄

$ sudo cp repo /user/bin

完工

5.如果repo init時出現 https 443 ssl錯誤,那麼需要將https更改為http

$ sudo vi /user/bin/repo

將第五行

REPO_URL='https://code.google.com/p/git-repo/'

改為

REPO_URL='http://code.google.com/p/git-repo/'

繼續享受repo 吧


zz: http://www.bashell.net/archives/repo-without-android-git-kernel-org.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.