我正在使用 ruby 安装程序rubyinstaller-2.4.1-2-x64.exe https://rubyinstaller.org/downloads/archives/安装ruby 2.4.1 on windows 10
。就成功了并且安装结束MSYS2
安装被触发。也是成功的。但MSYS2 system update
失败并出现以下错误。
mingw32.sig 96.0 B 93.8K/s 00:00 [#######################################] 100%
error: mingw32: signature from "Alexey Pavlov (Alexpux) <[email protected] /cdn-cgi/l/email-protection>" is invalid
error: failed to update mingw32 (invalid or corrupted database (PGP signature))
有什么解决方法可以解决这个问题吗?
注意:相同的安装包在我的家庭网络中完美运行。所以我猜这与公司防火墙有关。
通过查看各种答案,我以某种方式让它发挥作用。以下是使其发挥作用的一系列操作。
-
在环境变量中设置代理
setx http_proxy="http://proxy.server.address:port"
setx https_proxy="http://proxy.server.address:port"
setx ftp_proxy="http://proxy.server.address:port"
setx rsync_proxy="http://proxy.server.address:port"
删除 C:\msys64\var\lib\pacman\sync 中的所有文件
打开C:\msys64\mingw64.exe并运行命令pacman -Syy
-
Since pacman
现在工作了,我又回到原来的状态了ruby installer 2
过程。有效!
ridk install
1 - MSYS2 base installation - Completed Already
2 - MSYS2 system update -Successful now after proxy update
3 - MSYS2 and MINGW development toolchain -Successful now after proxy update
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)