oneclick / rubyinstaller2

MSYS2 based RubyInstaller for Windows
https://rubyinstaller.org
BSD 3-Clause "New" or "Revised" License
654 stars 249 forks source link

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

Closed jwalkerbg closed 3 years ago

jwalkerbg commented 4 years ago

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 commented 4 years ago

I think so too: https://github.com/oneclick/rubyinstaller2/issues/182#issuecomment-671103656

larskanis commented 4 years ago

Sorry for the slow response! This issue should be fixed by commit 29f4d3a51ca5660b47ed8143cba22306908a2d70 . You can update msys2 either manually by the steps of commit a7b2d950f2790406a6c17b9e951ae4712acbbd77 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 commented 4 years ago

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:

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

Regenhardt commented 3 years ago

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 <david.macek.0@gmail.com>" 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 commented 3 years ago

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