1

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 like How 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.

0

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).

| improve this answer | |
  • 1
    I also have ubuntu18.04.4 LTS. But on that system, when I enter gpg --version, I get gpg (GnuPG) 2.2.4. When I enter gpg2 --version, I get command not found. Should I enter sudo apt-get upgrade gnupg? – Esther May 22 at 18:56
  • Yes, you can do that (just googled it). It will update all the packages on your system that are out-of-date. If instead you want to just get the newest gpg, you can sudo apt-get install gnupg and it will update only gnupg. (source for difference between upgrade and install) – Michael Noguera May 23 at 19:06
  • It looks like gnupg2 is not used on 18.04, as it only existed to simplify the installation of gpg v2 when v1 was the default that came with the system. Because v2 is now the default, there is no need for a gnupg2 package. (See the comments on this answer for more info.) – Michael Noguera May 23 at 19:12
  • Thanks for your help! I have tried sudo apt-get upgrade gnupg on ubuntu18.04.4 LTS, but I can only get GnuPG 2.2.4 becasue of bonic package. Do this mean I need to build from source on ubuntu18.04 or install gnupg using package manager on ubuntu20.04? – Esther May 23 at 20:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.