Ruby RIDK安装:错误:数据库';mingw32';无效(无效或损坏的数据库(PGP签名))

Ruby RIDK安装:错误:数据库';mingw32';无效(无效或损坏的数据库(PGP签名)),ruby,msys2,ruby-install,rubyinstaller,Ruby,Msys2,Ruby Install,Rubyinstaller,我在尝试安装MSYS2/MINGW时遇到此错误: >ridk install 1 - MSYS2 base installation 2 - MSYS2 system update 3 - MSYS2 and MINGW development toolchain Which components shall be installed? If unsure press ENTER [1,2,3] 3 MSYS2 seems to be already installe

我在尝试安装MSYS2/MINGW时遇到此错误:

>ridk install
   1 - MSYS2 base installation
   2 - MSYS2 system update
   3 - MSYS2 and MINGW development toolchain

Which components shall be installed? If unsure press ENTER [1,2,3] 3

MSYS2 seems to be already installed
Install MSYS2 and MINGW development toolchain ...
> pacman -S --needed --noconfirm autoconf autoconf2.13 autogen automake-wrapper automake1.10 automake1.11 automake1.12 automake1.13 automake1.14 automake1.15 automake1.6 automake1.7 automake1.8 automake1.9 diffutils file gawk grep libtool m4 make patch pkg-config sed texinfo texinfo-tex wget mingw-w64-x86_64-binutils mingw-w64-x86_64-crt-git mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-libs mingw-w64-x86_64-headers-git mingw-w64-x86_64-libmangle-git mingw-w64-x86_64-libwinpthread-git mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-tools-git mingw-w64-x86_64-winpthreads-git
error: mingw32: signature from "David Macek <david.macek.0@gmail.com>" is marginal trust
error: mingw64: signature from "David Macek <david.macek.0@gmail.com>" is marginal trust
error: msys: signature from "David Macek <david.macek.0@gmail.com>" is marginal trust
error: database 'mingw32' is not valid (invalid or corrupted database (PGP signature))
error: database 'mingw64' is not valid (invalid or corrupted database (PGP signature))
error: database 'msys' is not valid (invalid or corrupted database (PGP signature))
Install MSYS2 and MINGW development toolchain failed
Installation failed: pacman failed
>ridk安装
1-MSYS2基座安装
2-MSYS2系统更新
3-MSYS2和MINGW开发工具链
应安装哪些部件?如果不确定,按回车[1,2,3]3
MSYS2似乎已经安装
安装MSYS2和MINGW开发工具链。。。
>pacman-S--需要--不确认autoconf autoconf2.13 autogen automake包装automake1.10 automake1.11 automake1.12 automake1.13 automake1.14 automake1.15 automake1.6 automake1.7 automake1.8 automake1.9 diffutils文件gawk grep libtool m4制作补丁包配置texinfo texinfo texinfo tex wget mingw-w64-x86_64-crt-gitmingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-libs mingw-w64-x86_64-headers-git mingw-w64-x86_64-libmangle-git mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config mingw-w64-x86_64-tools-git-git mingw-w64-x86-x86_64-winpthreads-git
错误:mingw32:来自“David Macek”的签名是边际信任
错误:mingw64:来自“David Macek”的签名是边际信任
错误:msys:来自“David Macek”的签名是边际信任
错误:数据库“mingw32”无效(无效或损坏的数据库(PGP签名))
错误:数据库“mingw64”无效(无效或损坏的数据库(PGP签名))
错误:数据库“msys”无效(无效或损坏的数据库(PGP签名))
安装MSYS2和MINGW开发工具链失败
安装失败:pacman失败

显然
ridk install
只安装MSYS2。他们调换了软件包维护人员,所以钥匙坏了:。Pacman是他们的包管理器(比如
apt-get
yum
gem
)。我要么有一个旧版本,要么我的旧Ruby 2.4正在安装一个旧版本(版本:“20161025”)。我碰巧吃了巧克力,有一个
msys2
包装,所以我用了

choco upgrade msys2  # this installed it. i did not have it installed via chocolatey
ridk version  # still showed an old version and would not work
pacman -U xz  # xz is like gzip - this gave the errors above
choco uninstall msys2  # this didn't do much
del \msys2  # have to manually delete the directory
choco upgrade msys2  # this installed a recent version
ridk install  # have to install the make and c++ tools, so include choice 3
它安装了49个软件包,现在可以运行了