字體:小 中 大 |
|
|
|
| 2011/09/07 09:48:00瀏覽1017|回應4|推薦0 | |
| 要下載Android,輸入指令 repo init -u git://android.git.kernel.org/platform/manifest.git 預期結果是要去找各分支、並且要問我帳號那些,但結果卻出現以下錯誤訊息 Getting repo ... from git://android.git.kernel.org/tools/repo.git android.git.kernel.org[0: 130.239.17.13]: errno=Connection refused android.git.kernel.org[0: 149.20.4.77]: errno=No route to host android.git.kernel.org[0: 199.6.1.173]: errno=Connection refused android.git.kernel.org[0: 2001:6b0:e:4017:1972:112:1:0]: errno=Network is unreachable android.git.kernel.org[0: 2001:4f8:1:10:1972:112:1:0]: errno=Network is unreachable android.git.kernel.org[0: 2001:4f8:8:10:1972:112:1:0]: errno=Network is unreachable android.git.kernel.org[0: 2001:500:60:10:1972:112:1:0]: errno=Network is unreachable fatal: unable to connect a socket (Network is unreachable) 該怎麼辦呢? ------------------------------------------- 解答: 這是因為kernel.org網站被hack關係,你可以去http://android.git.kernel.org看 結果會出現一隻綿羊還有奇怪的訊息 Nothing to see here - only dreams of electric sheep 解決方式: 1.修改 家目錄下的repo vi ~/bin/repo 將 REPO_URL='git://android.git.kernel.org/tools/repo.git' 改成 REPO_URL='http://android.git.kernel.org/tools/repo.git' 2.指令改下 repo init -u http://android.git.kernel.org/platform/manifest.git -b gingerbread (Dream: 沒有-b應該也可以) 3.修改Android目錄下的.repo/manifests/default.xml vi .repo/manifests/default.xml 將 fetch="git://android.git.kernel.org/" 改成 fetch="http://android.git.kernel.org/" 4.repo sync 成功! |
|
| ( 不分類|不分類 ) |










