【发布时间】:2016-02-15 17:18:56
【问题描述】:
我正在我的 Ubuntu 15.10 机器上设置 Sugar Labs 开发环境。为此,我需要克隆他们的 GitHub 存储库。我使用命令:
git clone git://github.com/sugarlabs/sugar-build.git
每次我这样做时都会遇到异常:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection timed out
但是,我知道这不是互联网连接问题,因为我的网络速度超过 100 mbps。
是什么导致了这个问题,我该如何解决?
【问题讨论】:
-
你能按照这里的解释通过 ssh 连接到 github 吗? help.github.com/articles/testing-your-ssh-connection 。您的防火墙可能会阻止与端口 22 的连接。否则,请尝试使用 https 存储库 url 克隆该存储库:github.com/sugarlabs/sugar-build.git
-
尝试通过 https 克隆:
git clone https://githib.com/sugarlabs/sugar-build.git