Sudo pacman-key --refresh-keys giving error

Ive tried searching but the only thing I found is that I should update the keyring, which still gives me the same error.
[denis@denis ~]$ sudo pacman-key --refresh-keys
[sudo] password for denis:
gpg: refreshing 122 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: General error
==> ERROR: A specified local key could not be updated from a keyserver.

Use a different keyserver, e.g. --keyserver keyserver.ubuntu.com or --keyserver hkps://keybase.io .

2 Likes

[denis@denis ~]$ sudo pacman-key --refresh-keys
gpg: refreshing 122 keys from hkps://keybase.io
gpg: keyserver refresh failed: No data
==> ERROR: A specified local key could not be updated from a keyserver.
Still get this error

Did you try another different keyserver?

2 Likes

yep I tried 3 different keyservers

Hmm. Same issue here too.

Let me have a play and see if I can narrow it down.

Edit:

pacman-key --keyserver hkps://keyserver.ubuntu.com --refresh will mostly succeed:

gpg: refreshing 120 keys from hkps://keyserver.ubuntu.com
...
gpg: Total number processed: 119
gpg:              unchanged: 112
gpg:         new signatures: 27
gpg:     signatures cleaned: 27

but it appears that one single key is failing to update resulting in the final “ERROR: A specified local key could not be updated from a keyserver.”

I don’t think this will prevent anything from working, it’s just annoying.

4 Likes
--keyserver hkp://pool.sks-keyservers.net  

must work, only hkps protocol is still an issue.
the problem with most alternative keyservers is that they do not have all keys needed for pacman -key sks pool is the default used, but if not specified hkp in settings or per command it defaults to hkps protocol pool

4 Likes

this works, thanks!

2 Likes