Install repo

Problem:
-----------------------------------------------------------------------------------------------------------------------------
fatal: unable to connect a socket


Resolution:
-----------------------------------------------------------------------------------------------------------------------------
會出現這個問題是因為Android git   Server的DNS查詢回應太慢的關係可依照下列方法解決
1.  ping android.git.kernel.org ,將結果的IP記錄下來
2.  更改系統的hosts, 將android.git.kernel.org與IP之對照表建立起來
     方法:sudo gedit /etc/hosts 新增一行 IP address 對照到 android.git.kernel.org
3. 修改專案目錄下的  .repo/manifest.xml, 將android.git.kernel.org 替換成剛剛找到的IP
4. repo init ................................................................................


-----------------------------------------------------------------------------------------------------------------------------


http://5i01.com/topicdetail.php?f=423&t=1130384&p=1