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

gpg: keyserver receive failed: No dirmngr #1329

Closed
docgregt opened this issue Feb 28, 2019 — with docs.microsoft.com · 7 comments
Closed

gpg: keyserver receive failed: No dirmngr #1329

docgregt opened this issue Feb 28, 2019 — with docs.microsoft.com · 7 comments

Comments

Copy link

Problem with ubuntu installed from Windows 10 setup:
sudo apt-key --keyring /etc/apt/trusted.gpg.d/Microsoft.gpg adv --keyserver packages.microsoft.com --recv-keys BC528686B50D79E339D3721CEB3E94ADBE1229CF
Executing: /tmp/apt-key-gpghome.TAkAqlbJN0/gpg.1.sh --keyserver packages.microsoft.com --recv-keys BC528686B50D79E339D3721CEB3E94ADBE1229CF
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.TAkAqlbJN0/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr

sudo apt-get install dirmngr does not work as it is already installed. Uninstalling and reinstalling does not help.

I solved it by using following:
curl -SL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xEB3E94ADBE1229CF" | sudo apt-key add

This was on a fairly clean install.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Copy link

microsoft/WSL#3286

@sptramer
Copy link
Contributor

@docgregt This issue is often seen by people running on an outdated version of Windows. Please update to at least Windows 1809 to receive the WSL fix which resolved a number of IPC problems, including those which were causing this error.

@docgregt
Copy link
Author

docgregt commented Mar 19, 2019 via email

@sptramer
Copy link
Contributor

sptramer commented Mar 19, 2019

Can you check the version of Windows/WSL by following these instructions, and make sure that it's at least 1809? Some administered environments block updates.

microsoft/WSL#1728

Update: This may be a dirmngr bug in general, according to some of the information I'm seeing. The package install instructions are being updated this month to use a different method.

@docgregt
Copy link
Author

image

Looks like I have 1803 and there is no admin that blocks my updates. I do not know why Windows Update has not given me the latest. Maybe it is a Dell thing.

What I read on numerous blogs was that it was a linux bug and someone needs to fix the linux bug so I don't think updating Windows will matter, but you would know that better than me.

@sptramer
Copy link
Contributor

It might be a Linux bug, but there were definitely WSL bugs related to IPC that were fixed in 1809. I wonder why that version isn't available for you, it was the Windows Fall Creator update, and tagged as installed on 10/1/18 on my machine.

It might be the case that you need to update manually (which would be recommended, for the security fixes.) Follow the Windows 10 October update instructions: https://support.microsoft.com/en-us/help/4028685/windows-10-get-the-update

I'd be curious to hear if you're able to get the current Ubuntu install instructions to work if you're able to successfully upgrade to 1809.

@githnt
Copy link

githnt commented Jan 21, 2020

Hi,
I have Windows 10.0.17134, WSL 1 and Ubuntu 18.04 (bionic). Does it mean that there is no way to make it work on this configuration? I keep getting the error:

gpg: connecting dirmngr at '/tmp/apt-key-gpghome.ljJpIgUmcc/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr

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

No branches or pull requests

5 participants