A mistake with git makes: "gpg-agent" is older than us (2.0.30 <2.1.20)

How can i fix this?

 gpg: WARNING: server 'gpg-agent' is older than us (2.0.30 < 2.1.20) 
+7
source share
4 answers

Version 2.0.30 gpg-agent is in $ PATH prior to version 2.1.20. uninstall version 2.0.30 gpg-agent.

 brew uninstall gpg-agent Uninstalling /usr/local/Cellar/gpg-agent/2.0.30_3... (690.2KB) which gpg-agent /usr/local/bin/gpg-agent gpg-agent --version gpg-agent (GnuPG) 2.1.21 
+2
source

A possible alternative reason is that you are using some kind of sharing solution (for example, docker), where several virtual environments see the same home directory.

Gpg starts the daemon when it is first run, if it is not already running, and contacts it on ~/.gnupg/S.gpg-agent . It is possible that several gpg agents from different environments see the same socket, and therefore they experience incompatibility. Solution: kill the unnecessary gpg-agent process.

0
source

You could also upgrade your gpg tool to a newer version, while you also used your old one. In this case, the parent gpg-agent remains in your process tree with an already incorrect version.

The solution is just to kill him. Gpg will restart it, this time correct.

0
source

You are actually getting a warning, not an error message. If you do not want to see this warning, you can disable it.

 git push 2>/dev/null 

source: https://duckduckgo.com/?q=suppress+gpg+warnings

0
source

All Articles