-
Notifications
You must be signed in to change notification settings - Fork 145
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
Unable to import gpg keys for node on macOS #192
Comments
I had this issue today and created the file
And it fixed it for me. Not sure if this needs to be in the docs for asdf-nodejs (or other asdf tools) |
@ruprict i ended up doing the same thing and it worked for me as well. Forgot to come back here and post an update. |
What's the reasoning behind standard-resolver? It's something general from GnuPG or something related to asdf-nodejs? |
Also: can you guys send the OSes that have shown the problem? Because other similar problems showed up almost at the same time I suspect is a update of some distribution that introduced a incompatible default config, we might want to add this fix to the README |
for what it's worth, the solution suggested here (#192 (comment)) did not work for me on its own: $ echo "standard-resolver" > ~/.gnupg/dirmngr.conf I had to additionally do: sudo pkill dirmngr now keys are found and imported. I am on:
|
I would've been on Mac OS X Catalina 10.15 when I was having the issue. |
I'm on MacOS Big Sur 11.2.3 |
Had to do the same on Big Sur 11.2.1 (20D74) |
Some of the SKS keyservers in the pool are at times not very reliable. I ran one, once, and the software tends to need to be restarted every few hours, which may have happened here, and hitting the pool again should give people a different server.
Would the project be open to a PR which updates repo to include the keys with it, and the import keyring script import them directly? I'm happy to contribute this if it would be considered; it would remove the reliance on a keyserver. |
@philihp I don't know if this is related to the keyservers reliability because only now this error is showing up, and only to a narrow number of users (only macOS users as of now). I don't know if we are comfortable with keeping the keys in the project for now, but we will keep this idea in mind |
Can confirm this issue is happening on MacOS Big Sur 11.3.1 (20E241). The I would not have found this Github suggested solution were it not for a fellow dev sending it my way. Searching the error message online brings up a myriad of suggested resolutions that send the dev down a rabbit hole of trying many different potential resolutions that end up not working. Adding this to the readme, docs somewhere, part of the installation, or fixing it in the code base for MacOS Big Sur would save others a lot of trouble. |
I was also having this issue on MacOS Big Sur 11.4 (Intel) and the Agree with @Jikodis 💯 that this should be added to the docs or fixed. |
I believe that this is caused by the keyservers being dead, and removing the dead ones should fix it. #240 |
#192 (comment) solved my issue (using 95a2091 of
|
In case it may help someone, I ran into a similar issue, which is not at all the fault of
I'm running macOS 11.5.2 (Intel), and made sure After some investigation as to what
It looks like it's expected to start on its own when gpg connects to it, but for whatever reason some library was missing that was required to start it, which I was able to observe by trying to start it on its own in a separate terminal window:
I reinstalled
After that, I could verify
And, in turn, I could once again import the gpg keys successfully. 🎉 |
Fetching the keys from Ubuntu's keyserver instead is what worked for me: nodejs/node#39114 (comment) |
Upgrading to the latest $ asdf install nodejs lts
Installing alias lts as 16.14.0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4035 0 4035 0 0 28255 0 --:--:-- --:--:-- --:--:-- 30111
gpg: keyserver receive failed: Try again later
^C
gpg: signal Interrupt caught ... exiting
received sigint, cleaning upCould not install version 16.14.0
received sigint, cleaning up% $ asdf plugin update nodejs
Updating nodejs to master
From https://github.com/asdf-vm/asdf-nodejs
cb61e3d..ed34355 master -> master
cb61e3d..ed34355 master -> origin/master
Already on 'master'
Your branch is up to date with 'origin/master'. $ asdf install nodejs lts
Installing alias lts as 16.14.0
Cloning node-build...
node-build: definition not found: 16.14.0
Could not install version 16.14.0 $ asdf install nodejs 16.13.2
Trying to update node-build... ok
Downloading node-v16.13.2-darwin-x64.tar.gz...
-> https://nodejs.org/dist/v16.13.2/node-v16.13.2-darwin-x64.tar.gz
Installing node-v16.13.2-darwin-x64...
Installed node-v16.13.2-darwin-x64 to /Users/vs/.asdf/installs/nodejs/16.13.2 |
Yes, asdf-nodejs doesn't rely on keyservers anymore |
This worked for my linux Ubuntu also. Thanks! |
I faced this issue today on my MacBook (M2) with macOS 14.4.1. I have installed gnupg (2.4.5) via homebrew. This fixed it for me:
|
Just set up a new dev Mac and trying to install node, when trying to add the gpg keys I'm getting the following errors.
The text was updated successfully, but these errors were encountered: