swiftly icon indicating copy to clipboard operation
swiftly copied to clipboard

gpg: keyserver refresh failed WSL2 / Ubuntu 22.04 and 24.04

Open samdeane opened this issue 1 year ago • 2 comments

Running swiftly install latest is giving me the following error:

sam@clear-air-turbulence ~> swiftly install latest
Fetching the latest stable Swift release...
Refreshing Swift PGP keys...
gpg: keyserver refresh failed: Server indicated a failure
Error: Failed to refresh PGP keys: Error(message: "gpg exited with non-zero status: 2")

Initially I had this on WSL2 with Ubuntu 22.04. I have just done a clean WSL2 install of Ubunu 24.04 to see if it helped, but I got the same error.

It may of course be an issue locally (eg with Windows or my local network). I don't really have enough context to be sure.

samdeane avatar Aug 30 '24 11:08 samdeane

Swiftly is relying on the ubuntu key server, which has had outages and problems in the past. Maybe it should have at least one fallback trusted key server if the first one fails to spread out the dependency more.

cmcgee1024 avatar Aug 30 '24 15:08 cmcgee1024

The current discussion on this is that keys should be refreshed directly from swift.org and not the third-party ubuntu keyserver.

cmcgee1024 avatar Sep 12 '24 18:09 cmcgee1024

This was fixed with #165

cmcgee1024 avatar Nov 11 '24 17:11 cmcgee1024