【问题标题】:RIDK install: error: database 'mingw32' is not valid (invalid or corrupted database (PGP signature))RIDK 安装:错误:数据库“mingw32”无效(数据库无效或损坏(PGP 签名))
【发布时间】:2020-10-16 05:27:52
【问题描述】:

我在尝试安装 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

【问题讨论】:

    标签: ruby msys2 ruby-install rubyinstaller


    【解决方案1】:

    显然ridk install 只是安装了 MSYS2 https://www.msys2.org/。他们更换了他们的包维护者,所以密钥很糟糕:https://www.msys2.org/news/#2020-06-29-new-packagers。 Pacman 是他们的包管理器(如apt-getyumgem)。我要么有旧版本,要么我的旧 Ruby 2.4 正在安装旧版本(版本:'20161025')。我碰巧有 Chocolatey,有一个 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 个包,现在 make 可以工作了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多