正在尝试更新 GPG。我的系统给出了相互矛盾的结果

Trying to update GPG. My system gives me conflicting results

我正在尝试更新我的 GPG。

user@linuxmint ~/Downloads $ whereis gpg
gpg: /usr/bin/gpg /usr/share/man/man1/gpg.1.gz

user@linuxmint ~/Downloads $ gpg --version
gpg (GnuPG) 1.4.20
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

它告诉我我的版本是1.4.20,很奇怪,好的。让我们更新。

user@linuxmint ~/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).
0 upgraded, 0 newly installed, 0 to remove and 58 not upgraded.

哇!所以看来我更新了。但是系统不这么认为。 我需要获取密钥,旧版本不支持从https获取。

user@linuxmint ~/Downloads $ gpg --fetch-keys https://keys.qubes-os.org/keys/qubes-master-signing-key.asc
gpgkeys: protocol `https' not supported
gpg: no handler for keyserver scheme `https'
gpg: WARNING: unable to fetch URI https://keys.qubes-os.org/keys/qubes-master-signing-key.asc: keyserver error

非常感谢任何帮助

GPG 和 GPG2 作为单独的软件包发布。您可以通过 gpg2 命令使用 GPG2。

如果有问题,您可以在 ~/.bashrc 中创建一个别名:

alias gpg="gpg2"

但这可能会导致其他在内部使用 GPG 的应用程序出现一些问题。