[SERVER-32658] GPG key for 3.4 expired on 09.01.2018 Created: 11/Jan/18  Updated: 27/Oct/23  Resolved: 13/Feb/18

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 3.4.10
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Toshko Andreev [X] Assignee: Brian McCarthy
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Steps To Reproduce:

Ubuntu 16.04 Server LTS:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6

echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list

sudo apt-get update

Participants:
Case:

 Description   

The GPG key for v3.4 for Ubuntu has expired:

Err:12 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release.gpg
The following signatures were invalid: KEYEXPIRED 1515625755



 Comments   
Comment by Brian McCarthy [ 11/Jan/18 ]

Hello, the steps you used look correct.

To verify, I spun up an Ubuntu 16.04 instance at AWS and ran your commands.
The installation was successful.

 cat /etc/issue
Ubuntu 16.04.3 LTS \n \l
 
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
Executing: /tmp/tmp.o4dRdPjSkZ/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv
0C49F3730359A14518585931BC711F9BA15703C6
gpg: requesting key A15703C6 from hkp server keyserver.ubuntu.com
gpg: key A15703C6: public key "MongoDB 3.4 Release Signing Key <packaging@mongodb.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
 
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse
 
sudo apt-get update
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Ign:5 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 InRelease
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
Get:8 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release [3,457 B]
Get:9 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release.gpg [801 B]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:13 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4/multiverse amd64 Packages [8,276 B]
Get:14 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4/multiverse arm64 Packages [8,284 B]
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Sources [290 kB]
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2,532 B]
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [186 kB]
Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [7,968 B]
Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [699 kB]
Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [291 kB]
Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7,588 B]
Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2,272 B]
Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [572 kB]
Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [231 kB]
Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]
Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,052 B]
Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Sources [3,436 B]
Get:30 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [4,908 B]
Get:31 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4,840 B]
Get:32 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3,220 B]
Get:33 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [6,612 B]
Get:34 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3,768 B]
Get:35 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:36 http://security.ubuntu.com/ubuntu xenial-security/main Sources [105 kB]
Get:37 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,116 B]
Get:38 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [48.9 kB]
Get:39 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,520 B]
Get:40 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [424 kB]
Get:41 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [186 kB]
Get:42 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7,224 B]
Get:43 http://security.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2,152 B]
Get:44 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [195 kB]
Get:45 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [101 kB]
Get:46 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,208 B]
Get:47 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,408 B]
Fetched 24.7 MB in 2min 0s (205 kB/s)
Reading package lists... Done
 
sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
  mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
0 upgraded, 5 newly installed, 0 to remove and 41 not upgraded.
Need to get 66.9 MB of archives.
After this operation, 270 MB of additional disk space will be used.
Get:1 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4/multiverse amd64 mongodb-org-shell amd64 3.4.10 [7,987 kB]
Get:2 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4/multiverse amd64 mongodb-org-server amd64 3.4.10 [14.2 MB]
Get:3 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4/multiverse amd64 mongodb-org-mongos amd64 3.4.10 [8,115 kB]
Get:4 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4/multiverse amd64 mongodb-org-tools amd64 3.4.10 [36.5 MB]
Get:5 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4/multiverse amd64 mongodb-org amd64 3.4.10 [3,522 B]
Fetched 66.9 MB in 3s (20.3 MB/s)
Selecting previously unselected package mongodb-org-shell.
(Reading database ... 51107 files and directories currently installed.)
Preparing to unpack .../mongodb-org-shell_3.4.10_amd64.deb ...
Unpacking mongodb-org-shell (3.4.10) ...
Selecting previously unselected package mongodb-org-server.
Preparing to unpack .../mongodb-org-server_3.4.10_amd64.deb ...
Unpacking mongodb-org-server (3.4.10) ...
Selecting previously unselected package mongodb-org-mongos.
Preparing to unpack .../mongodb-org-mongos_3.4.10_amd64.deb ...
Unpacking mongodb-org-mongos (3.4.10) ...
Selecting previously unselected package mongodb-org-tools.
Preparing to unpack .../mongodb-org-tools_3.4.10_amd64.deb ...
Unpacking mongodb-org-tools (3.4.10) ...
Selecting previously unselected package mongodb-org.
Preparing to unpack .../mongodb-org_3.4.10_amd64.deb ...
Unpacking mongodb-org (3.4.10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mongodb-org-shell (3.4.10) ...
Setting up mongodb-org-server (3.4.10) ...
Adding system user `mongodb' (UID 112) ...
Adding new user `mongodb' (UID 112) with group `nogroup' ...
Not creating home directory `/home/mongodb'.
Adding group `mongodb' (GID 116) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
Setting up mongodb-org-mongos (3.4.10) ...
Setting up mongodb-org-tools (3.4.10) ...
Setting up mongodb-org (3.4.10) ...

If you do a sudo apt-key list, you should see the 3.4 signing key with a 2020 expiration date.

pub   4096R/A15703C6 2016-01-11 [expires: 2020-01-05]
uid                  MongoDB 3.4 Release Signing Key <packaging@mongodb.com>

Is this what you see on your system after adding the key.
Thanks

Generated at Thu Feb 08 04:30:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.