DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>
2012-05-15 13:37
991 查看
http://www.haogongju.net/art/1428426
最近因为工作需要,需要完整的Android源码,于是在VMware上安装Ubuntu,按照http://source.android.com/source/downloading.html中说明下载源码,但是当使用命令repo syns的时候总是失败DownloadError: android.googlesource.com:
<urlopen error [Errno 110] Connection timed out>
其实官网(http://source.android.com/source/downloading.html)有段说明,如果认真执行就可解决。
1, 先按官网的步骤一步步执行
2,当遇到上述问题后,用浏览器登录https://android.googlesource.com/new-password,并用gmail帐号登录;
3, 点击网页上的“允许访问”,得到类似的结果:
将上边的两行追加到~/.netrc文件结尾。(如果你的linux系统中从来没有建立过此文件,就在home目录下建立.netrc文件,将上面的信息加到新建的文件中去),
4,下载地址的URI更改为https://android.googlesource.com/a/platform/manifest(中间加上了“/a”)。
5,然后执行repo sync就可以正常下载了
因为访问基本是匿名的,为了防止连接过多,对同一IP地址的连接数做了一定的限制。用gmail帐号进行认证。
在公司网络内或者用虚拟机下载的话,会经常遇到这问题。
最近因为工作需要,需要完整的Android源码,于是在VMware上安装Ubuntu,按照http://source.android.com/source/downloading.html中说明下载源码,但是当使用命令repo syns的时候总是失败DownloadError: android.googlesource.com:
<urlopen error [Errno 110] Connection timed out>
其实官网(http://source.android.com/source/downloading.html)有段说明,如果认真执行就可解决。
1, 先按官网的步骤一步步执行
2,当遇到上述问题后,用浏览器登录https://android.googlesource.com/new-password,并用gmail帐号登录;
3, 点击网页上的“允许访问”,得到类似的结果:
machine android.googlesource.com login git-<userName>.gmail.com password <password> |
machine android-review.googlesource.com login git-<userName>.gmail.com password <password> |
4,下载地址的URI更改为https://android.googlesource.com/a/platform/manifest(中间加上了“/a”)。
5,然后执行repo sync就可以正常下载了
因为访问基本是匿名的,为了防止连接过多,对同一IP地址的连接数做了一定的限制。用gmail帐号进行认证。
在公司网络内或者用虚拟机下载的话,会经常遇到这问题。
相关文章推荐
- 解决用虚拟机或者公司网络下载android源码,遇到DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>的问题
- android 源码下载DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out
- DownloadError: android.googlesource.com: <urlopen error [Errno 111] Connection refused>
- Errno 12] Timeout: <urlopen error timed out>
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- ERROR (ConnectionError): HTTPConnectionPool (Caused by <class 'socket.error'>: [Errno 111] Connecti
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- Linux:proxy,,,<urlopen error [Errno 111] Connection refused>)
- scrapy [boto] ERROR: Caught exception reading instance data URLError: <urlopen error [Errno 10051] >
- 【Python】 URLError: <urlopen error timed out> 错误
- android studio failed to open zip file .Android Studio Error:Connection timed out: connect.
- urllib2.URLError: <urlopen error [Errno -2] Name or service not known>
- URLError: <urlopen error [Errno 10051] >
- Android 学习意外第五季<2>——google GPS定位由经纬度转换地址信息
- UBUNTU12.04编译Android源码<命令行>:0:0: 错误: “_FORTIFY_SOURCE”重定义 [-Werror] <命令行>::0:0: 错误: “_FORTIFY_SOUR
- appium genymotion URLError: <urlopen error [Errno 10061] >
- <错误处理> Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessExc