2017-06-11 167 views
1

我想通過使用this script和最新版本的Mingw + Msys2在Windows 8.1下構建ffmpeg,但是它會從bitbucket.org獲取任何hg克隆的錯誤,例如:Mingw + msys2:無法連接到bitbucket.org:網絡無法訪問

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

注:另外,我已經看到了類似的this一些stackoverflow.com職位。但它似乎只適用於Linux,因爲我添加了104.192.143.2 bitbucket.org到我的/ etc/hosts但是沒有工作。

請指導我。

+0

將bitbucket.org替換爲'build/media-suite_compile.sh'中的IP – Mulvya

+0

@Mulvya,感謝您的評論,但它不起作用。 –

+1

切換到鏡像:http:// hg.videolan.org/x265 /' – Mulvya

回答

2

這不是一個IPv6問題 - 如果是這樣的話,您的ping -6中就會有完整的[2401:1d80:1010 :: 150]地址。

相反,它看起來像你從伊朗連接(81.12.120.0/24由伊朗ISP擁有)。自從美國政府對伊朗實施制裁以來,由於Bitbucket的基礎設施在美國,Bitbucket服務器被要求放棄來自伊朗的請求。

+0

啊,現在我明白了這個問題, 非常感謝爲你的答案。 –

+0

不幸的是,我也喜歡伊朗的大部分人是我國和其他一些國家的政治和政治家的受害者,世界上大多數網站都被伊朗政府封鎖。 –

+0

而當我們使用代理/ VPN通過過濾器時,將面臨美國政府的一些限制。 –