oneclick / rubyinstaller2

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

ridk install fails for steps 2 and 3 #118

Closed aharpervc closed 6 years ago

aharpervc commented 6 years ago

What problems are you experiencing?

ridk install results in several error messages for steps 2 and 3

Full log here:

```log _____ _ _____ _ _ _ ___ | __ \ | | |_ _| | | | | | |__ \ | |__) | _| |__ _ _ | | _ __ ___| |_ __ _| | | ___ _ __ ) | | _ / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ / | | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | | __/ | / /_ |_| \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____| __/ | _ |___/ _|_ _ __ | | o __ _| _ _ | (_) | |^| | | |(_|(_)\^/_> 1 - MSYS2 base installation 2 - MSYS2 system update (optional) 3 - MSYS2 and MINGW development toolchain Which components shall be installed? If unsure press ENTER [1,2,3] > sh -lc true 'C:\Windows\system32\drivers\etc\hosts' -> '/etc/hosts' 'C:\Windows\system32\drivers\etc\protocol' -> '/etc/protocols' 'C:\Windows\system32\drivers\etc\services' -> '/etc/services' 'C:\Windows\system32\drivers\etc\networks' -> '/etc/networks' gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created gpg: no ultimately trusted keys found gpg: Generating pacman keyring master key... gpg: skipping control `%no-protection' () +++++ ...............+++++ gpg: key 5C5A8D36 marked as ultimately trusted gpg: Done ==> Updating trust database... gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u ==> Appending keys from msys2.gpg... gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u ==> Locally signing trusted keys in keyring... -> Locally signing key D55E7A6D7CE9BA1587C0ACACF40D263ECA25678A... -> Locally signing key 123D4D51A1793859C2BE916BBBE514E53E0D0813... -> Locally signing key B91BCF3303284BF90CC043CA9F418C233E652008... -> Locally signing key 9DD0D4217D75A33B896159E6DA7EF2ABAEEA755C... ==> Importing owner trust values... gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: inserting ownertrust of 4 ==> Updating trust database... gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 4 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: depth: 1 valid: 4 signed: 3 trust: 0-, 0q, 0n, 4m, 0f, 0u gpg: depth: 2 valid: 3 signed: 0 trust: 3-, 0q, 0n, 0m, 0f, 0u gpg: refreshing 8 keys from hkp://pool.sks-keyservers.net gpg: requesting key 5C5A8D36 from hkp server pool.sks-keyservers.net gpg: requesting key CA25678A from hkp server pool.sks-keyservers.net gpg: requesting key AEEA755C from hkp server pool.sks-keyservers.net gpg: requesting key 3E0D0813 from hkp server pool.sks-keyservers.net gpg: requesting key 3E652008 from hkp server pool.sks-keyservers.net gpg: requesting key A47D45A1 from hkp server pool.sks-keyservers.net gpg: requesting key 2C51581E from hkp server pool.sks-keyservers.net gpg: requesting key 4CA56930 from hkp server pool.sks-keyservers.net gpgkeys: key F5359D07470D0E217AA1FB075FBD11CD5C5A8D36 not found on keyserver gpg: key CA25678A: "Alexey Pavlov (Alexpux) " 4 new signatures gpg: key AEEA755C: "Martell Malone (martell) " 3 new signatures gpg: key 3E0D0813: "Ray Donnelly (MSYS2 Developer - master key) " 2 new signatures gpg: key 3E652008: "Ignacio Casal Quinteiro " 2 new signatures gpg: key A47D45A1: "Alexey Pavlov (Alexpux) " 1 new signature gpg: key 2C51581E: "Martell Malone (MSYS2 Developer) " not changed gpg: key 4CA56930: "Ray Donnelly (MSYS2 Developer) " 2 new signatures gpg: Total number processed: 7 gpg: unchanged: 1 gpg: new signatures: 14 gpg: keyserver communications error: key not found gpg: keyserver communications error: bad public key gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 4 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: depth: 1 valid: 4 signed: 3 trust: 0-, 0q, 0n, 4m, 0f, 0u gpg: depth: 2 valid: 3 signed: 0 trust: 3-, 0q, 0n, 0m, 0f, 0u gpg: keyserver refresh failed: bad public key ==> ERROR: A specified local key could not be updated from a keyserver. --> Installing /usr/share/info/assuan.info.gz ... done --> Installing /usr/share/info/autoconf.info.gz ... done --> Installing /usr/share/info/autoconf2.13.info.gz ... done --> Installing /usr/share/info/autogen.info.gz ... done --> Installing /usr/share/info/automake1.10.info.gz ... done --> Installing /usr/share/info/automake1.11.info.gz ... done --> Installing /usr/share/info/automake1.12.info.gz ... done --> Installing /usr/share/info/automake1.13.info.gz ... done --> Installing /usr/share/info/automake1.14.info.gz ... done --> Installing /usr/share/info/automake1.15.info.gz ... done --> Installing /usr/share/info/automake1.6.info.gz ... done --> Installing /usr/share/info/automake1.7.info.gz ... done --> Installing /usr/share/info/automake1.8.info.gz ... done --> Installing /usr/share/info/automake1.9.info.gz ... done --> Installing /usr/share/info/automake-history1.12.info.gz ...install-info: warning: no info dir entry in `/usr/share/info/automake-history1.12.info.gz' done --> Installing /usr/share/info/automake-history1.13.info.gz ...install-info: warning: no info dir entry in `/usr/share/info/automake-history1.13.info.gz' done --> Installing /usr/share/info/automake-history1.14.info.gz ...install-info: warning: no info dir entry in `/usr/share/info/automake-history1.14.info.gz' done --> Installing /usr/share/info/automake-history1.15.info.gz ...install-info: warning: no info dir entry in `/usr/share/info/automake-history1.15.info.gz' done --> Installing /usr/share/info/autosprintf.info.gz ... done --> Installing /usr/share/info/bash.info.gz ... done --> Installing /usr/share/info/coreutils.info.gz ... done --> Installing /usr/share/info/diffutils.info.gz ... done --> Installing /usr/share/info/find.info.gz ... done --> Installing /usr/share/info/find-maint.info.gz ... done --> Installing /usr/share/info/flex.info.gz ... done --> Installing /usr/share/info/gawk.info.gz ... done --> Installing /usr/share/info/gawkinet.info.gz ... done --> Installing /usr/share/info/gawkworkflow.info.gz ... done --> Installing /usr/share/info/gcrypt.info.gz ... done --> Installing /usr/share/info/gdbm.info.gz ... done --> Installing /usr/share/info/gettext.info.gz ... done --> Installing /usr/share/info/gmp.info.gz ... done --> Installing /usr/share/info/gnupg1.info.gz ... done --> Installing /usr/share/info/gpgme.info.gz ... done --> Installing /usr/share/info/grep.info.gz ... done --> Installing /usr/share/info/gzip.info.gz ... done --> Installing /usr/share/info/history.info.gz ... done --> Installing /usr/share/info/inetutils.info.gz ... done --> Installing /usr/share/info/info-stnd.info.gz ... done --> Installing /usr/share/info/libffi.info.gz ... done --> Installing /usr/share/info/libgomp.info.gz ... done --> Installing /usr/share/info/libidn.info.gz ... done --> Installing /usr/share/info/libidn2.info.gz ... done --> Installing /usr/share/info/libquadmath.info.gz ... done --> Installing /usr/share/info/libtasn1.info.gz ... done --> Installing /usr/share/info/libtool.info.gz ... done --> Installing /usr/share/info/libunistring.info.gz ... done --> Installing /usr/share/info/m4.info.gz ... done --> Installing /usr/share/info/make.info.gz ... done --> Installing /usr/share/info/mpfr.info.gz ... done --> Installing /usr/share/info/readline.info.gz ... done --> Installing /usr/share/info/rluserman.info.gz ... done --> Installing /usr/share/info/sed.info.gz ... done --> Installing /usr/share/info/tar.info.gz ... done --> Installing /usr/share/info/texinfo.info.gz ... done --> Installing /usr/share/info/time.info.gz ...install-info: warning: no info dir entry in `/usr/share/info/time.info.gz' done --> Installing /usr/share/info/wget.info.gz ... done --> Installing /usr/share/info/which.info.gz ... done ################################################################### # # # # # C A U T I O N # # # # This is first start of MSYS2. # # You MUST restart shell to apply necessary actions. # # # # # ################################################################### MSYS2 seems to be properly installed Remove catgets to avoid conflicts while update ... > pacman -Rdd catgets libcatgets --noconfirm error: target not found: catgets error: target not found: libcatgets MSYS2 system update (optional) part 1 ... > pacman -Syu --needed --noconfirm :: Synchronizing package databases... mingw32 416.6 KiB 1047K/s 00:00 [#######################################] 100% mingw32.sig 96.0 B 93.8K/s 00:00 [#######################################] 100% mingw64 416.9 KiB 1813K/s 00:00 [#######################################] 100% mingw64.sig 96.0 B 93.8K/s 00:00 [#######################################] 100% msys 162.6 KiB 2.69M/s 00:00 [#######################################] 100% msys.sig 119.0 B 0.00B/s 00:00 [#######################################] 100% :: Starting core system upgrade... warning: terminate other MSYS2 programs before proceeding resolving dependencies... looking for conflicting packages... Packages (5) bash-4.4.019-3 filesystem-2018.06-1 mintty-1~2.8.5-1 pacman-5.1.0-2 pacman-mirrors-20180604-2 Total Download Size: 9.56 MiB Total Installed Size: 45.54 MiB Net Upgrade Size: 0.67 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... bash-4.4.019-3-x86_64 1983.4 KiB 2.13M/s 00:01 [#######################################] 100% filesystem-2018.06-1-x86_64 43.0 KiB 21.0M/s 00:00 [#######################################] 100% mintty-1~2.8.5-1-x86_64 261.5 KiB 2.22M/s 00:00 [#######################################] 100% pacman-mirrors-20180604-2-any 17.1 KiB 16.7M/s 00:00 [#######################################] 100% pacman-5.1.0-2-x86_64 7.3 MiB 2.11M/s 00:03 [#######################################] 100% (5/5) checking keys in keyring [#######################################] 100% (5/5) checking package integrity [#######################################] 100% error: GPGME error: Invalid crypto engine error: GPGME error: Invalid crypto engine error: GPGME error: Invalid crypto engine error: GPGME error: Invalid crypto engine error: GPGME error: Invalid crypto engine :: File /var/cache/pacman/pkg/bash-4.4.019-3-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] :: File /var/cache/pacman/pkg/filesystem-2018.06-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] :: File /var/cache/pacman/pkg/mintty-1~2.8.5-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] :: File /var/cache/pacman/pkg/pacman-mirrors-20180604-2-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] :: File /var/cache/pacman/pkg/pacman-5.1.0-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] error: failed to commit transaction (invalid or corrupted package (PGP signature)) Errors occurred, no packages were upgraded. MSYS2 system update (optional) failed Installation failed: pacman failed 1 - MSYS2 base installation 2 - MSYS2 system update (optional) 3 - MSYS2 and MINGW development toolchain Which components shall be installed? If unsure press ENTER [] ```

Errors are:

Steps to reproduce

I get similar errors (same pacman failed... can't exactly say that the GPGME error is identical for sure... installing/uninstalling/installing/uninstalling this repeatedly is exhausting) with the standalone version of 2.5.1-1-x64 without msys, and then installing msys x64 separately.

So obviously I have found https://github.com/Alexpux/MSYS2-packages/issues/393 and therefore this all seems like a msys problem, however it's not clear how to do some of the diagnostics mentioned there when I'm not starting up the msys shell myself, but ridk is doing it internally.

Disabling signature verification in pacman.conf allowed ridk install to complete without error, but that seems like a worrisome answer here.

What's the output from ridk version?

$ ridk version
---
ruby:
  path: c:/Program Files/ruby/251-1-x64-dk
  version: 2.5.1
  platform: x64-mingw32
ruby_installer:
  package_version: 2.5.1-1
  git_commit: 71c9f4e
msys2:
  path: c:\Program Files\ruby\251-1-x64-dk\msys64
cc: x86_64-w64-mingw32-gcc (Rev1, Built by MSYS2 project) 7.3.0
sh: GNU bash, version 4.4.19(2)-release (x86_64-pc-msys)
os: Microsoft Windows [Version 10.0.16299.431]
aharpervc commented 6 years ago

Tried ridk install on ruby 2.4.3 (32 bit), using the msys version that automatically installed with option 1.

$ ridk version

``` --- ruby: path: c:/bin/ruby/243 version: 2.4.3 platform: i386-mingw32 ruby_installer: package_version: 2.4.3-1 git_commit: 36aac73 msys2: path: c:\bin\ruby\msys32 title: MSYS2 32bit version: '20161025' sh: GNU bash, version 4.3.46(2)-release (i686-pc-msys) os: Microsoft Windows [Version 10.0.16299.431] ```

Got a similar but not identical error

error: GPGME error: System error w/o errno
error: GPGME error: Invalid crypto engine
error: GPGME error: Resource temporarily unavailable
error: automake1.10: missing required signature
larskanis commented 6 years ago

@aharpervc Did you solve the above issue? I had the same error sometimes in the past and was able to fix it by re-installing libgpgme, gnupg and pacman.

aharpervc commented 6 years ago

Good idea... There was an update for libgpgme anyway. I had to turn off signature verification after uninstalling gnupg (presumable because.... it would then be missing and can't verify signatures) but the reinstall appears to be okay. Not sure if that will 100% solve the issue, though.

I'm going to close this because it's probably not a rubyinstaller2 problem. But thanks for responding.

nextcen-dgemoets commented 6 years ago

Brand new to Ruby. I had the same problem out-of-the-box trying to install Windows Ruby+Devkit 2.4.4-2 (x64). Same problem with 2.5.1-2.