git - Mingw+msys2 : Failed to connect to bitbucket. org : 网络不可达

标签 git ffmpeg mercurial bitbucket git-clone

我想在 windows 8.1 下使用 this script 构建 ffmpeg和 Mingw+Msys2 的最后一个版本,但是对于来自 bitbucket.org 的任何 hg 克隆,它都会出错,例如:

$ hg clone https://bitbucket.org/multicoreware/x265

abort: error:Network is unreachable



在网上搜索后看到this page并意识到这是因为 bitbucket.org 有 IPv6 而我无法访问它。
请查看以下命令的结果:
$ ping -n 10 bitbucket.org

Pinging bitbucket.org [104.192.143.2] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 104.192.143.2:
    Packets: Sent = 10, Received = 0, Lost = 10 (100% loss),



$ ping -n 10 -6 bitbucket.org
Ping request could not find host bitbucket.org. Please check the name and try again


$ tracert bitbucket.org

Tracing route to bitbucket.org [104.192.143.1]
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  192.168.1.1
  2    30 ms    29 ms     9 ms  81.12.120.2
  3    20 ms    40 ms    12 ms  81.12.120.1
  4     6 ms     8 ms    10 ms  192.168.8.41
  5    21 ms    24 ms    19 ms  192.168.8.1
  6     *        *        *     Request timed out.
  7    52 ms    56 ms    54 ms  192.168.170.241
  8    35 ms    25 ms     *     10.10.53.61
  9    27 ms    32 ms    32 ms  10.201.47.142
 10    30 ms    44 ms    38 ms  10.201.42.117
 11    40 ms    33 ms    67 ms  10.201.147.242
 12    46 ms    38 ms    59 ms  85.132.90.201
 13     *        *        *     Request timed out.
 14     *        *        *     Request timed out.
 15     *        *        *     Request timed out.
 16     *        *        *     Request timed out.
  ...

注意:另外,我在 stackoverflow.com 上看到过一些帖子,例如 this .但它似乎只适用于 Linux,因为我将 104.192.143.2 bitbucket.org 添加到我的/etc/hosts 但没有工作。

请指导我。

最佳答案

这不是 IPv6 问题 - 您的 ping -6 中会有完整的 [2401:1d80:1010::150] 地址。如果是这样的话。

相反,您似乎是从伊朗连接的(81.12.120.0/24 归伊朗 ISP 所有)。由于美国政府对伊朗实现制裁,并且由于 Bitbucket 的基础设施在美国,因此要求 Bitbucket 服务器丢弃来自伊朗的请求。

关于git - Mingw+msys2 : Failed to connect to bitbucket. org : 网络不可达,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44483533/

相关文章:

git - 如何在 Terraform 中使用 git 存储库作为 AWS Lambda 源?

git - 当 git push 失败并显示 .. ."local out of date"时我该怎么办?

mercurial - obslog 中第 N 个条目的 hg 修订说明符? (进化扩展)

mercurial - 覆盖全局忽略?

mercurial - 在处理其他事情时如何将一堆未提交的更改放在一边

git - 如何将分离的 HEAD 中的更改提交到 git 中的新分支

android - 我如何知道 Webrtc 修订版和版本号?

ffmpeg - 有没有办法在转码之前使用 ffmpeg 确定文件的编码?

android - 将 2 个 mp3 文件与 Android 的 FFmpeg 混合

android - FFmpeg 音视频合并命令