1.获取repo时,使用
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ./repo
获取到的repo在执行时会出现以下错误
/home/jay/bin/repo: line 1: 在未预料的“newline”附近出现语法错误
/home/jay/bin/repo: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">'
解决:(repo-1.12,repo-1.13等)
curl http://git-repo.googlecode.com/files/repo-1.12 > ./repo
1.repo sync时,
error: Failed to connect to 2404:6800:4005:c00::52: Network is unreachable while accessing https://android.googlesource.com/platform/external/libxml2/info/refs
fatal: HTTP request failed
error: Cannot fetch platform/external/libxml2
error: Exited sync due to fetch errors
解决:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ./repo
获取到的repo在执行时会出现以下错误
/home/jay/bin/repo: line 1: 在未预料的“newline”附近出现语法错误
/home/jay/bin/repo: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">'
解决:(repo-1.12,repo-1.13等)
curl http://git-repo.googlecode.com/files/repo-1.12 > ./repo
1.repo sync时,
error: Failed to connect to 2404:6800:4005:c00::52: Network is unreachable while accessing https://android.googlesource.com/platform/external/libxml2/info/refs
fatal: HTTP request failed
error: Cannot fetch platform/external/libxml2
error: Exited sync due to fetch errors
解决:
关于这个其实google是有说明的http://source.android.com/source/downloading.html,为了防止连接数过多,每个ip都需要认证。。。
第一步:从这里 the password generator 获取用户名和密码
第二步:将上面的页面上以machine开头的两行复制到 ~/.netrc文件中
第三步:repo init -u https://android.googlesource.com/a/platform/manifest 多了个“/a”
然后就可以repo sync了
特别注意.netrc文件是在用户的根目录下,root用户就是/目录下,