How to Upgrade to GnuPG 2.x on Ubuntu Linux

If you are using the Enigmail security add-on for Mozilla Thunderbird under Ubuntu Linux, you may have recently discovered (as I did today) that it no longer works with the version of GnuPG that you have installed, and that you need to upgrade. But it’s not evident how to do this, as there is no GnuPG update available in the Ubuntu Software Center.

Fortunately, there is an easy way to upgrade Ubuntu to GnuPG 2. Just open a terminal and type:

sudo apt-get install gnupg2

and enter your password when prompted.


English Transcript of the Iranian Television Documentary Program “Rules of the Game” (قاعده بازی)


Persian Phrase of the Day: از جمله، اما نه محدود به


  1. Mo

    I have the weiredest of problems. When I do `gpg –version` my system tells me I have `gpg (GnuPG) 1.4.20`

    elliot@warmachine ~/Downloads $ gpg –version
    gpg (GnuPG) 1.4.20
    Copyright (C) 2015 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Home: ~/.gnupg
    Supported algorithms:
    Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
    Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
    Compression: Uncompressed, ZIP, ZLIB, BZIP2

    But when I try to upgrade it tells me I already have the latest version :

    elliot@warmachine ~/Downloads $ sudo apt-get install gnupg2
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    gnupg2 is already the newest version (2.1.11-6ubuntu2).
    The following package was automatically installed and is no longer required:
    Use ‘sudo apt autoremove’ to remove it.
    0 upgraded, 0 newly installed, 0 to remove and 58 not upgraded

    So now I’m so confused. I don’t know where GPG installs itself when you install it (teach me how). But I am unable to fetch my key because when I try to do that, gpg tells me it doesn’t support https.

    elliot@warmachine ~/Downloads $ gpg –fetch-keys
    gpgkeys: protocol `https’ not supported
    gpg: no handler for keyserver scheme `https’
    gpg: WARNING: unable to fetch URI keyserver error

  2. Anonymous

    gpg2 –version

Leave a Reply

Your email address will not be published. Required fields are marked *

Powered by WordPress & Theme by Anders Norén