<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I installed two versions of GnuPG on Ubuntu using two package managers. GPG 2.2 is installed with built-in apt and GPG 2.3 is installed with LinuxBrew. The path of LinuxBrew has priority in the $PATH so it is invoked in the terminal (which is what I want). However whenever I uses it, it shows the message “server gpg-agent is older than us (2.2.20 < 2.3.4)”. It seems that GPG 2.3 invoked the old version of gpg-agent residing in /usr/bin. I cannot delete the old gpg because it is a dependency of other software.</div><div class=""><br class=""></div><div class="">Running “gpgconf kill —all” won’t solve the problem, so does restarting the machine. What is strange is that running “gpgconf list” shows the <b class="">correct</b> path of all the components, including gpg-agent.</div><div class=""><br class=""></div><div class="">I installed two versions of GPG because I want to use the newest v2.3, which is not provided in any apt source as I know. Is there anyway to resolve the issue, or installing two versions is an undefined behaviour?</div><div class=""><br class=""></div><div class="">Thanks in advance</div><div class=""><br class=""></div><div class="">Meng</div></body></html>