Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: mingw32: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown #184

Closed
jwalkerbg opened this issue Aug 5, 2020 · 5 comments
Closed

Comments

@jwalkerbg
Copy link

What problems are you experiencing?

I get errors when executing ridk install:
'error: mingw32: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown'

Steps to reproduce

  1. Download rubyinstaller, par example https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.6-1/rubyinstaller-devkit-2.6.6-1-x64.exe
  2. Run installer.
  3. Ruby installs correctly, MSYS2 installation begins.
  4. The above error occurs.

What's the output from ridk version?

C:\Users\imc>ridk version
---
ruby:
  path: C:/Ruby26-x64
  version: 2.6.6
  platform: x64-mingw32
ruby_installer:
  package_version: 2.6.6-1
  git_commit: eb60b1c
msys2:
  path: C:\Ruby26-x64\msys64
cc: x86_64-w64-mingw32-gcc (Rev1, Built by MSYS2 project) 9.3.0
sh: GNU bash, version 4.4.23(2)-release (x86_64-pc-msys)
os: |-
  Active code page: 65001

  Microsoft Windows [Version 10.0.19041.388]`

Comments

This issue is probably result of changes described here : https://www.msys2.org/news/#2020-06-29-new-packagers. I suppose that new packages should be generated that will include new keys.

@kou
Copy link

kou commented Aug 9, 2020

I think so too: #182 (comment)

@larskanis
Copy link
Member

Sorry for the slow response! This issue should be fixed by commit 29f4d3a . You can update msys2 either manually by the steps of commit a7b2d95 or by using ridk install 1 2 3 from the latest rubyinstaller builds. They are available in the build artifacts section for various ruby versions here: https://ci.appveyor.com/project/larskanis/rubyinstaller2-hbuor/builds/34807789

@sjieg
Copy link

sjieg commented Sep 1, 2020

Seeing this same issue, I did not find this ticket yet. I could not update msys2 in any way on Windows.

The solution for me was:

  • Uninstall ruby
  • Completely delete the Ruby installation folder (needs a system reboot to do so)
  • Install the latest msys2: https://www.msys2.org/#installation
  • Install Ruby with RubyInstaller
    • Make sure to uncheck Install MSYS2
  • Run ridk install 1 2 3

Also: Thanks for all the hard work on RubyInstaller! <3

@Regenhardt
Copy link

Regenhardt commented Nov 2, 2020

Tried it, now the msys2-check works but something about pacman fails?

> sh -lc true
MSYS2 seems to be properly installed
Check msys2-keyring version:
 -> up-to-date
Remove catgets to avoid conflicts while update  ...
> pacman -Rdd catgets libcatgets --noconfirm
error: mingw32: signature from "David Macek <[email protected]>" is unknown trust

Edit: This happens with Ruby 2.7.2:

ruby:
  path: C:/Ruby27-x64
  version: 2.7.2
  platform: x64-mingw32
  cc: x86_64-w64-mingw32-gcc.exe (Rev1, Built by MSYS2 project) 10.2.0
ruby_installer:
  package_version: 2.7.2-1
  git_commit: df3bebb
msys2:
  path: C:\msys64
sh: GNU bash, version 4.4.23(2)-release (x86_64-pc-msys)
os: Microsoft Windows [Version 10.0.19042.572]

Edit 2: I fixed it using pacman-key --lsign-key A47D45A1 to manually sign the key.

@larskanis
Copy link
Member

The original issue was solved with this RubyInstaller series: https://rubyinstaller.org/2020/10/06/rubyinstaller-2.7.2-1-2.6.6-2-and-2.5.8-2-released.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants