如何下载msys2?

问题描述 投票:0回答:1

我一直在尝试下载 MSYS2,但遇到了很多错误。我想尝试一些 C++ 开发,因此想将其下载到我的 Windows 11 笔记本电脑上。按照here的说明,我选择了“开始”菜单快捷方式上的 vscode 选项(使用安装向导)。当我进行到第 6 步时,它出现了这些错误(由于溢出的字符限制而被削减):

error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-13.1.0-6-any.pkg.tar.zst' from mirror.msys2.org : SSL certificate problem: self-signed certificate in certificate chain
error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-ada-13.1.0-6-any.pkg.tar.zst' from mirror.msys2.org : SSL certificate problem: self-signed certificate in certificate chain
error: failed retrieving file 'mingw-w64-ucrt-x86_64-python-3.10.11-1-any.pkg.tar.zst' from mirror.msys2.org : SSL certificate problem: self-signed certificate in certificate chain
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.1.0-6-any.pkg.tar.zst' from mirror.msys2.org : SSL certificate problem: self-signed certificate in certificate chain
error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-fortran-13.1.0-6-any.pkg.tar.zst' from mirror.msys2.org : SSL certificate problem: self-signed certificate in certificate chain
error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-ada-13.1.0-6-any.pkg.tar.zst' from repo.msys2.org : SSL certificate problem: self-signed certificate in certificate chain
error: failed retrieving file 'mingw-w64-ucrt-x86_64-python-3.10.11-1-any.pkg.tar.zst' from repo.msys2.org : SSL certificate problem: self-signed certificate in certificate chain
error: failed retrieving file 'mingw-w64-ucrt-x86_64-gcc-13.1.0-6-any.pkg.tar.zst' from repo.msys2.org : SSL certificate problem: self-signed certificate in certificate chain
warning: too many errors from repo.msys2.org, skipping for the remainder of this transaction

等等...

在解决这个问题时,我发现了这个堆栈溢出页面和这个常见问题解答(问题2)。然而,当我执行curl命令时,它出现了这个新错误:

$ curl --fail --silent --show-error -I https://repo.msys2.org -o /dev/null && echo "OK!"
curl: (60) SSL certificate problem: self-signed certificate in certificate chain
More details here: https://curl.se/docs/sslcert.html

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.

我该如何解决这个问题?

(编辑):计算机位于我的学校系统上,因此它可能会通过 SSL 拦截代理。错误包括:
(1) SSL 证书问题:证书链中的自签名证书
(2) SSL 连接超时
(3) 无法解析主机:repo.casualgamer.ca
(4) OpenSSL SSL_connect:连接到的 SSL_ERROR_SYSCALL [网站]:443
(5) OpenSSL/3.1.0:错误:0A0003E8:SSL 例程::原因(1000)
(6) 无法解析主机:[网站]

installation ssl-certificate mingw-w64 msys2 pacman-package-manager
1个回答
0
投票

看起来您有一些 HTTPS 中间人,例如代理或防火墙进行 SSL 拦截。

您可以使用curl标志

-k
--insecure
忽略这一点。

如果您只需要构建工具而不是 MSYS2 shell,您可以从 https://winlibs.com/

获取独立的 MinGW-w64 构建工具
最新问题
© www.soinside.com 2019 - 2024. All rights reserved.