apt-get update "GPG error" Ubuntu 18.04.4 LTS
by TTWE from LinuxQuestions.org on (#557QZ)
Hi trying to do apt-get update returns the error
Code:W: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release: The following signatures were invalid: EXPKEYSIG BC711F9BA15703C6 MongoDB 3.4 Release Signing Key <packaging@mongodb.com>
E: The repository 'http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.I've worked out its a key verification error I have tried to find the expired key using "apt-key list" that returns
Code:pub rsa4096 2016-01-11 [SC] [expired: 2020-01-05]
0C49 F373 0359 A145 1858 5931 BC71 1F9B A157 03C6
uid [ expired] MongoDB 3.4 Release Signing Key <packaging@mongodb.com>
/etc/apt/trusted.gpg.d/nordvpn-keyring.ascI can't see a "key" as described in the examples (https://askubuntu.com/questions/4816...id-in-terminal) so I tried using Code:BC711F9BA15703C6 from the earlier output and I get the error
Code:apt-key adv --keyserver keys.gunnpg.net --recv-keys BC711F9BA15703C6
Executing: /tmp/apt-key-gpghome.u3L44IDyJS/gpg.1.sh --keyserver keys.gunnpg.net --recv-keys BC711F9BA15703C6
gpg: keyserver receive failed: No nameAny help would be appreciated.
TTWE


Code:W: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release: The following signatures were invalid: EXPKEYSIG BC711F9BA15703C6 MongoDB 3.4 Release Signing Key <packaging@mongodb.com>
E: The repository 'http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.I've worked out its a key verification error I have tried to find the expired key using "apt-key list" that returns
Code:pub rsa4096 2016-01-11 [SC] [expired: 2020-01-05]
0C49 F373 0359 A145 1858 5931 BC71 1F9B A157 03C6
uid [ expired] MongoDB 3.4 Release Signing Key <packaging@mongodb.com>
/etc/apt/trusted.gpg.d/nordvpn-keyring.ascI can't see a "key" as described in the examples (https://askubuntu.com/questions/4816...id-in-terminal) so I tried using Code:BC711F9BA15703C6 from the earlier output and I get the error
Code:apt-key adv --keyserver keys.gunnpg.net --recv-keys BC711F9BA15703C6
Executing: /tmp/apt-key-gpghome.u3L44IDyJS/gpg.1.sh --keyserver keys.gunnpg.net --recv-keys BC711F9BA15703C6
gpg: keyserver receive failed: No nameAny help would be appreciated.
TTWE