From what I understand, the gpg-agent is older than us
warning happens when the gpg-agent version doesn't match the gpg version, often because there are two gpg-agents installed (and sharing the socket). Other answers I saw about this warning usually boil down to uninstalling the old gpg-agent or restarting it after an update. I have the opposite problem: I can't find what is this "us" that has a newer version.
$ pass email
gpg: WARNING: server 'gpg-agent' is older than us (2.2.27 < 2.2.32)
It's not just with pass
, any use of gpg shows the warning. As far as I can tell, the only gpg and gpg-agent are the ones from the ubuntu repository:
$ gpgconf
gpg:OpenPGP:/usr/bin/gpg
gpg-agent:Private Keys:/usr/bin/gpg-agent
scdaemon:Smartcards:/usr/lib/gnupg/scdaemon
gpgsm:S/MIME:/usr/bin/gpgsm
dirmngr:Network:/usr/bin/dirmngr
pinentry:Passphrase Entry:/usr/bin/pinentry
When I use gpg, it is indeed those binaries that I'm calling:
$ which gpg
/usr/bin/gpg
$ which gpg-agent
/usr/bin/gpg-agent
They are both version 2.2.27:
$ gpg --version
gpg (GnuPG) 2.2.27
libgcrypt 1.9.4
$ gpg-agent --version
gpg-agent (GnuPG) 2.2.27
libgcrypt 1.9.4
If I uninstall gpg-agent, I can't use my gpg key anymore:
$ sudo apt remove gpg-agent
$ pass email
gpg: decryption failed: No secret key
If I uninstall gpg, there's no other gpg:
$ sudo apt remove gpg
$ gpg --version
Command 'gpg' not found, but can be installed with:
sudo apt install gpg
I tried to find if there was any other gpg binary in the path (I used to have newer versions installed with guix
), and there aren't:
$ for folder in $PATH
$ find $folder -name "gpg*"
$ end
/usr/bin/gpg
/usr/bin/gpg-agent
/usr/bin/gpg-connect-agent
/usr/bin/gpg-wks-server
/usr/bin/gpgcompose
/usr/bin/gpgconf
/usr/bin/gpgparsemail
/usr/bin/gpgsm
/usr/bin/gpgsplit
/usr/bin/gpgtar
/usr/bin/gpgv
I ran gpgconf --kill all
, systemctl --user restart gpg-agent
, restarted the computer many times, but the warning persists.
So how do I find this mysterious gpg with version 2.2.32, or what else could be causing the warning?