【问题标题】:Failed to connect to bitbucket.org port 443: Network is unreachable无法连接到 bitbucket.org 端口 443:网络无法访问
【发布时间】:2018-01-05 00:55:32
【问题描述】:

我在尝试克隆存储库时遇到以下问题。

致命:无法访问“https://Tejaswikatha@bitbucket.org/activecubs_angularjs/activecubs-admin-angularjs.git/”:无法连接到 bitbucket.org 端口 443:网络无法访问

【问题讨论】:

标签: bitbucket


【解决方案1】:

对于 UBUNTU:

  1. 打开 /etc/hosts 文件
  2. 添加 104.192.143.3 bitbucket.org 作为第一行并保存文件

现在可以进行克隆了。

【讨论】:

    【解决方案2】:

    这可能是由于尝试git pushpullclone 而不是IPv6 的已知问题。

    您可以通过将以下行添加到您的hosts file 来强制IPv4(Linux 上为/etc/hosts,Windows 上为c:\windows\System32\drivers\etc\hosts):

    104.192.143.1 bitbucket.org
    

    如果您有更新的 git 客户端 (>2.8),您还可以通过 -4--ipv4 开关强制 IPv4。

    【讨论】:

      猜你喜欢
      • 2019-02-02
      • 2016-01-31
      • 2014-09-27
      • 1970-01-01
      • 1970-01-01
      • 2011-12-03
      • 2016-09-05
      • 1970-01-01
      相关资源
      最近更新 更多