$ repo init -u https://android.googlesource.com/platform/manifest
Getting repo ...
from git://android.git.kernel.org/tools/repo.git
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
Getting repo ...
from git://android.git.kernel.org/tools/repo.git
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
遇到這個問題時,是因為from git://android.git.kernel.org/tools/repo.git己經沒有這個目錄了。。google改變了repo.git的目錄地址
打開~/bin/repo
將REPO_URL='git://android.git.kernel.org/tools/repo.git'
修改為:REPO_URL='https://android.googlesource.com/tools/repo.git'
就可以下載了。