{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/3286","repository_url":"https://api.github.com/repos/Microsoft/WSL","labels_url":"https://api.github.com/repos/Microsoft/WSL/issues/3286/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/WSL/issues/3286/comments","events_url":"https://api.github.com/repos/Microsoft/WSL/issues/3286/events","html_url":"https://github.com/Microsoft/WSL/issues/3286","id":330854159,"node_id":"MDU6SXNzdWUzMzA4NTQxNTk=","number":3286,"title":"Error importing key to apt keyserver in Ubuntu 18.04 on WSL","user":{"login":"sirredbeard","id":33820650,"node_id":"MDQ6VXNlcjMzODIwNjUw","avatar_url":"https://avatars2.githubusercontent.com/u/33820650?v=4","gravatar_id":"","url":"https://api.github.com/users/sirredbeard","html_url":"https://github.com/sirredbeard","followers_url":"https://api.github.com/users/sirredbeard/followers","following_url":"https://api.github.com/users/sirredbeard/following{/other_user}","gists_url":"https://api.github.com/users/sirredbeard/gists{/gist_id}","starred_url":"https://api.github.com/users/sirredbeard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirredbeard/subscriptions","organizations_url":"https://api.github.com/users/sirredbeard/orgs","repos_url":"https://api.github.com/users/sirredbeard/repos","events_url":"https://api.github.com/users/sirredbeard/events{/privacy}","received_events_url":"https://api.github.com/users/sirredbeard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-09T05:09:56Z","updated_at":"2018-06-09T11:28:18Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"* Your Windows build number:  10.0.17134.81\r\n\r\n* What you're doing and what's happening: \r\n\r\nBuilding MonoDevelop for Windows looks like a [real hassle](http://www.monodevelop.com/developers/building-monodevelop/#windows) and there are no binaries available.\r\n\r\nI decided to give MonoDevelop for Ubuntu binaries a try on WSL.\r\n\r\nI installed a clean Ubuntu 18.04 from the Microsoft Store.\r\n\r\nTo get it all caught up I executed:\r\n\r\n```\r\nsudo apt-mark hold ebtables # for the current upgrade bug\r\nsudo apt-get update\r\nsudo apt-get upgrade -y\r\n```\r\n\r\nand then I picked up with the [MonoDevelop IDE instructions](http://www.monodevelop.com/download/#fndtn-download-lin):\r\n\r\n```\r\nsudo apt install apt-transport-https dirmngr\r\nsudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF\r\n```\r\n\r\nThen I run into an issue.\r\n\r\nI receive the following error message:\r\n\r\n```\r\n$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF\r\n[sudo] password for hayden:\r\nExecuting: /tmp/apt-key-gpghome.BG01sRSmD5/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF\r\ngpg: connecting dirmngr at '/tmp/apt-key-gpghome.BG01sRSmD5/S.dirmngr' failed: IPC connect call failed\r\ngpg: keyserver receive failed: No dirmngr\r\n```\r\n\r\n* What's wrong / what should be happening instead:\r\n\r\ngpg isn't able to call dirmngr\r\n\r\nWhat I have attempted:\r\n\r\n1. Running dirmngr in another bash instance\r\n2. Making sure gpg-agent is running in the background\r\n3. This. https://stackoverflow.com/questions/49496667/gpg-key-generation-canceled and https://stackoverflow.com/questions/46673717/gpg-cant-connect-to-the-agent-ipc-connect-call-failed \r\n\r\n* [Strace of the failing command.](https://gist.github.com/sirredbeard/41ced701945eeb66e2cbfca0a44025a3)\r\n\r\nNote: I have also tried building MonoDevelop from source on Ubuntu in WSL, but ran into [this issue](https://github.com/mono/monodevelop/issues/5022)."},"comment":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/comments/395961845","html_url":"https://github.com/Microsoft/WSL/issues/3286#issuecomment-395961845","issue_url":"https://api.github.com/repos/Microsoft/WSL/issues/3286","id":395961845,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTk2MTg0NQ==","user":{"login":"shoffmeister","id":3868036,"node_id":"MDQ6VXNlcjM4NjgwMzY=","avatar_url":"https://avatars3.githubusercontent.com/u/3868036?v=4","gravatar_id":"","url":"https://api.github.com/users/shoffmeister","html_url":"https://github.com/shoffmeister","followers_url":"https://api.github.com/users/shoffmeister/followers","following_url":"https://api.github.com/users/shoffmeister/following{/other_user}","gists_url":"https://api.github.com/users/shoffmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/shoffmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoffmeister/subscriptions","organizations_url":"https://api.github.com/users/shoffmeister/orgs","repos_url":"https://api.github.com/users/shoffmeister/repos","events_url":"https://api.github.com/users/shoffmeister/events{/privacy}","received_events_url":"https://api.github.com/users/shoffmeister/received_events","type":"User","site_admin":false},"created_at":"2018-06-09T11:28:18Z","updated_at":"2018-06-09T11:28:18Z","author_association":"NONE","body":"The process you strace keeps looking for \"/tmp/apt-key-gpghome.wZVVfa2T2R/S.dirmngr\" - and does not find it.\r\nThat this then ends up as\r\n```\r\n3424  socket(AF_UNIX, SOCK_STREAM, 0)   = 3\r\n3424  stat(\"/tmp/apt-key-gpghome.wZVVfa2T2R/S.dirmngr\", 0x7fffe2242bd0) = -1 ENOENT (No such file or directory)\r\n3424  bind(3, {sa_family=AF_UNIX, sun_path=\"/tmp/apt-key-gpghome.wZVVfa2T2R/S.dirmngr\"}, 43) = -1 ENOENT (No such file or directory)\r\n```\r\ndoes not seem to be overly surprising.\r\n\r\nThis begs the question: What do you actually see in `sudo ls -la /tmp/apt-key-gpghome*` at the time of failure?"}}
{"actor":{"display_login":"shoffmeister"}}