Linked Questions

Popular Questions

I was wondering if anyone can help figuring out about how to deal with the issue of expired key.

Basically, I was re-installing mongodb which I have done successfully before, but now that the key expired in 2023-04-17 I can't do it any more.

sudo apt-key list
pub   rsa4096 2018-04-18 [SC] [expired: 2023-04-17]
      9DA3 1620 334B D75D 9DCB  49F3 6881 8C72 E525 29D4
uid           [ expired] MongoDB 4.0 Release Signing Key <[email protected]>


What I did was

sudo apt-key del 68818C72E52529D4
sudo apt-key adv --keyserver --recv-keys 68818C72E52529D4


sudo apt update
Err:19 stretch/mongodb-org/4.0 Release.gpg
  The following signatures were invalid: EXPKEYSIG 68818C72E52529D4 MongoDB 4.0 Release Signing Key <[email protected]>
Hit:20 focal/mongodb-org/7.0 Release
Ign:18 xenial/mongodb-org/3.4 Release.gpg
Reading package lists... Done

Thank you in advance, Vlad

Related Questions