I am trying to install MinGW-w64 via MSYS2 alongside VS code on a windows 10 computer. The installation finishes but when I use the <pacman -S –needed base-devel mingw-w64-ucrt-x86_64-toolchain> command to retrieve the packages it gives me errors, most of theM say failed to connect to port 443: Timeout was reached. I have tried to open port 443 using the steps here https://www.ssldragon.com/blog/https-port-443/ and temporarily disable the firewall but it has not worked. Below are some of the errors:
error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-13.2.0-3-any.pkg.tar.zst' from mirror.msys2.org : Failed to connect to mirror.msys2.org port 443 after 10010 ms: Timeout was reached
error: failed retrieving file 'mingw-w64-ucrt-x86_64-python-3.11.7-1-any.pkg.tar.zst' from mirror.msys2.org : Failed to connect to mirror.msys2.org port 443 after 10014 ms: Timeout was reached
error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-ada-13.2.0-3-any.pkg.tar.zst' from mirror.msys2.org : Failed to connect to mirror.msys2.org port 443 after 10014 ms: Timeout was reached
warning: too many errors from mirror.msys2.org, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-objc-13.2.0-3-any.pkg.tar.zst' from mirror.msys2.org : Failed to connect to mirror.msys2.org port 443 after 10014 ms: Timeout was reached
error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-fortran-13.2.0-3-any.pkg.tar.zst' from mirror.msys2.org : Failed to connect to mirror.msys2.org port 443 after 10014 ms: Timeout was reached
error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-13.2.0-3-any.pkg.tar.zst' from repo.msys2.org : Failed to connect to repo.msys2.org port 443 after 10006 ms: Timeout was reached
error: failed retrieving file 'mingw-w64-ucrt-x86_64-python-3.11.7-1-any.pkg.tar.zst' from repo.msys2.org : Failed to connect to repo.msys2.org port 443 after 10006 ms: Timeout was reached
error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-ada-13.2.0-3-any.pkg.tar.zst' from repo.msys2.org : Failed to connect to repo.msys2.org port 443 after 10005 ms: Timeout was reached
I tried opening port 443 using the steps here https://www.ssldragon.com/blog/https-port-443/ as I thought the problem might be that it is not open. I also tried disabling the firewall temporarily and running the installation file as administrator. None of these worked.
Alungile is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.