How to upgrade GnuPG with version >2.2.8 in Ubuntu 16.04.2 LTS? When I enter gpg --version, I get gpg (GnuPG) 1.4.20. When I enter gpg2--version, I get gpg (GnuPG) 2.1.11. I also have Thunderbird with version 52.2.1. What commands should I enter or what files should I install to upgrade GnuPG? Do I need to upgrade Thunderbird?
I have looked at some links likeHow do I install GnuPG 2.0?How do I install GnuPG 2.2?
But I am still confused of how to do this. I am just a normal user and worry that I would ruin something. I would be grateful if I could get some help like step by step ”How to” guide.
1 Answer
Using a package manager is easiest.
Looks like the apt package for GnuPG on xenial maxes out at 1.4.20. As of this writing, you can get 2.2.4 on bionic, or 2.2.19 on focal, which is the current LTS release.
Can you upgrade your Ubuntu to a more recent version? I know that xenial is arguably still supported, but if you can, it is then as simple as sudo apt-get install gnupg afterwards to get the newest version.
Otherwise it looks like you're stuck building from source (avaliable on gnupg.org here, you'd run ./configure, then make, then make install from within the source directory).