Mingw + msys2: Failed to connect to bitbucket.org: network is unavailable

I want to build ffmpeg under Windows 8.1 using this script and the latest version of Mingw + Msys2, but it gets an error for any hg-clone from bitbucket.org, for example:

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

abort: error: network unavailable

After searching the Internet, I saw this page and realized that this is because this bitbucket.org has IPv6 and I can’t access it. See the Results of the Following Commands:

$ 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. ... 

NOTE: In addition, I saw several posts at stackoverflow.com, for example. But it looks like this only works for Linux, because I added 104.192.143.2 bitbucket.org to my / etc / hosts, but it didn't work.

I beg you, please.

+1
git bitbucket git-clone mercurial ffmpeg
source share
1 answer

This is not a problem with IPv6 β€” you will have the full [2401: 1d80: 1010 :: 150] address in ping -6 , if so.

Instead, it looks like you are connecting from Iran (12.12.120.0/24 belongs to the Iranian Internet Service Provider). As the US government imposed sanctions on Iran, and since the Bitbucket infrastructure is in the US, Bitbucket servers must refuse requests from Iran.

+2
source share

All Articles