加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_泰州站长网 (http://www.0523zz.com/)- 视觉智能、AI应用、CDN、行业物联网、智能数字人!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

Android Repo 超时的解决措施

发布时间:2021-11-25 18:22:10 所属栏目:PHP教程 来源:互联网
导读:下载Google的Android操作系统的时候卡在下面一步: Getting repo ... from git://android.git.kernel.org/tools/repo.git android.git.kernel.org[0: 204.152.191.45]: errno=Connection timed out android.git.kernel.org[0: 130.239.17.12]: errno=Connect

下载Google的Android操作系统的时候卡在下面一步:
 
Getting repo ...
from git://android.git.kernel.org/tools/repo.git
android.git.kernel.org[0: 204.152.191.45]: errno=Connection timed out
android.git.kernel.org[0: 130.239.17.12]: errno=Connection timed out
android.git.kernel.org[0: 149.20.20.141]: errno=Connection timed out
android.git.kernel.org[0: 199.6.1.176]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
 
找各种原因,可能是公司用的局域网ISP将Git的端口9418给封了,因为http://android.git.kernel.org是可以访问的。后来搜了一下知道很多git服务器同时提供端口80的下载。解决方法如下:
 
1.将命令行中的git://android.git.kernel.org换成http://android.git.kernel.org,
 
 
2.修改文件repo将里面的
 
REPO_URL='git://android.git.kernel.org/tools/repo.git' 改成
 
REPO_URL='http://android.git.kernel.org/tools/repo.git'
 
 
3. 修改文件.repo/manifests/default.xml将其中的 fetch="git://android.git.kernel.org/" 改成
 
fetch="http://android.git.kernel.org/"

(编辑:云计算网_泰州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读