MSYS2-packages: repo.msys2.org very slow or unreachable

Seems like upgrading ruby on Windows just became much more complicated…

Anyway, my issues are, when running: ridk install 1:

Verify integrity of msys2-x86_64-20161025.exe ... Failed
Download http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe
  to C:\Users\looee\AppData\Local\Temp/msys2-x86_64-20161025.exe
Downloading msys2-x86_64-20161025.exe (  0%)
Verify integrity of msys2-x86_64-20161025.exe ... Failed
Download http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe
  to C:\Users\looee\AppData\Local\Temp/msys2-x86_64-20161025.exe
Downloading msys2-x86_64-20161025.exe (  0%)
Verify integrity of msys2-x86_64-20161025.exe ... Failed
Download http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe
  to C:\Users\looee\AppData\Local\Temp/msys2-x86_64-20161025.exe

Tried downloading http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe manually and I was getting speeds of <1kb/s.

After installing from a different location and running ridk install 2 - many errors such as

error: failed retrieving file 'pacman-5.0.1-4-x86_64.pkg.tar.xz' from repo.msys2.org : transfer closed with 7036272 bytes remaining to read

My internet connection is fine (speedtest around 30mbs and downloads from other sites work fine). Could this be a regional thing, since I am based in Vietnam?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 17 (4 by maintainers)

Most upvoted comments

This really needs to be fixed as other build systems that use msys2 are also affected, e.g. vcpkg. I can’t access repo.msys2.org from Hong Kong and Japan either.

You need set mirror .

You can use below if you are near in China

For example:

Add below to /etc/pacman.d/mirrorlist.mingw64

Server = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64
Server = http://mirror.bit.edu.cn/msys2/REPOS/MINGW/x86_64
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64