-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
RVM signature verification failures due to not using same gpg/gpg2 as RVM installer uses #196
Comments
I think I ran into the same issue. Do you have a workaround, @pjnagel? I'm not sure I fully understand what is going on and I'm a bit lost on what I could do to solve this. |
For me, this issue is not clearly reproducible. Sometimes it fails, sometimes it works. Very frustrating :( |
As workaround, I run the following before importing the rvm.ruby galaxy role:
As far as reproducing the issue goes, the only clue I have is my earlier comment on ~/.gnupg/pubring.kbx. Something one does with gpg2 makes it decide to create a new pubring in a new format. Whatever that thing is, it must be something that is not supported by the pubring format that gpg1 used. Beyond that, I have no clue. |
Great, thanks! I'll give this a try in the next couple of days! |
I think this is still an open issue and not addressed in 2.2.0, right? |
The rvm.ruby role uses the gpg command when importing keys, i.e. 'gpg --batch --keyserver {{ item }} --recv-keys {{ rvm1_gpg_keys }}'.
The RVM installer itself will, however, use gpg2 in preference to gpg if gpg2 is available.
In many (most?) cases that is not a problem, since both programs use the same ~/.gnupg/pubring.gpg keyring.
However, in some installations, gpg2 actually uses ~/.gnupg/pubring.kbx instead, and in those cases the RVM installation fails when trying to check the signature on the RVM installer because the public key was not imported to the same keyring as gpg2 will use.
The solution would be import the keys using the exact same gpg/gpg2 program as RVM itself will use.
The text was updated successfully, but these errors were encountered: