If the error occurs due to keyserver being unable, you can fix it by adding these. When pgp keyservers are missing there are many different errors that might occur. In ArchLinux some of those are listed below:
:: Importing keys with gpg...
gpg: keyserver receive failed: General error
problem importing keys
:: Importing keys with gpg...
gpg: keyserver receive failed: No keyserver available
problem importing keys
gpg: keyserver receive failed: General error
Source code viewer
# Add these keyservers to "~/.gnupg/gpg.conf". keyserver hkp://pool.sks-keyservers.net keyserver hkps://keyserver.ubuntu.comProgramming Language: INI