Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu - Install GPG 2

If you run the command gpg --version on Ubuntu 14.04, it will tell you that you have version 1.4.16 (at the time of this writing). If you want to get version 2+, then all you need to do is run:

sudo apt-get install gnupg2 -y

You will now have the older version of gpg installed, as well as the newer version. To use the newer version, just change the gpg in all of your commands to gpg2. For example, to list your keys, run the command:

gpg2 --list-keys

This should also resolve the thunderbird enigmail addon issue.

Ubuntu 14.04 Version

Ubuntu 14.04 will install GPG version 2.0.22. It is worth noting that Eliptic curve cryptography is not available until version 2.1.

Last updated: 9th May 2020
First published: 16th August 2018