Fix error `gpg: keyserver receive failed: Server indicated a failure` on Ubuntu

Photo by Gabriel Heinzer on Unsplash

To fix this error:

gpg: keyserver receive failed: Server indicated a failure

In your command replace hkp://pool.sks-keyservers.net with keyserver.ubuntu.com .

For example:

gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
# Output: gpg: keyserver receive failed: Server indicated a failure
gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
# Output is fine

--

--