I am trying to install ttf-unifont
from AUR. I am facing the issue in Latnook's comment
. It says:
:: PGP keys need importing: -> 95D2E9AB8740D8046387FD151A09227B1F435A33, required by: ttf-unifont ==> Import? [Y/n] :: Importing keys with gpg... gpg: keyserver receive failed: General error problem importing keys
Now, I followed the link in nl6720's comment
to this forum post
, which suggest that I try changing the keyserver! I tried adding the ubuntu keyserver to /etc/pacman.d/gnupg/gpg.conf , But it didnt help with the issue. But it does make pacman-keys --refresh start working. I tried following the link in the last comment
, but it's dead! Then I saw makepkg uses my keyring
. So I made ~/.gnupg/gpg.conf with the contents:
Then I ran
$ gpg --recv-keys 95D2E9AB8740D8046387FD151A09227B1F435A33 gpg: key 1A09227B1F435A33: no user ID gpg: Total number processed: 1
But it still doesn't work.
gpg --list-keys outputs nothing!
So pacman uses a separate keyring for managing its keys. If you use yay or manually install packages from AUR, makepkg( which is invoked ) uses the user's keyring found in ~/.gnupg .
Now I think both the pacman keyring instance and the user keyring instance of gpg uses https://sks-keyservers.net/
by default. And according to this post
, those servers are not functioning reliably right now.
So for installing AUR packages(at least this particular one), what you need to do is add the line
to the file ~/.gnupg/gpg.conf (make one if not present already).
It can be any keyserver you wish but keyserver.ubuntu.com
is what worked for me (keys.openpgp.org
did not work for me for this particular key but it seems to work for most other keys)
Also since the sks keyserver pool isn't working right now, adding the above line to /etc/pacman.d/gnupg/gpg.conf as well might be a good idea.