If you have run pre-build-root-install-dependencies.sh before it should install repo from stable branch: wget -q --no-check-certificate "http://android.git.linaro.org/gitweb?p=tools/repo.git%3Ba=blob_plain%3Bf=rep..." -O $HOME/bin/repo chmod a+x $HOME/bin/repo