Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with git commits: 'gpg-agent' is older than us (2.0.30 < 2.1.20)

Tags:

git

gnupg

How would I go about fixing this?

gpg: WARNING: server 'gpg-agent' is older than us (2.0.30 < 2.1.20)
like image 989
Kirk Strobeck Avatar asked May 10 '17 18:05

Kirk Strobeck


2 Answers

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

The solution is simply to kill him. Gpg will re-start it, this time a correct one.

like image 87
peterh Avatar answered Oct 02 '22 18:10

peterh


Version 2.0.30 of gpg-agent is in $PATH before version 2.1.20. uninstall version 2.0.30 of 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
like image 43
בנימן הגלילי Avatar answered Oct 02 '22 20:10

בנימן הגלילי