Hello Martin,

The error you’re encountering indicates that the GPG key for the MongoDB repository has expired. To fix this, you will need to update the expired key. Here’s a short guide on how to do it:

Remove the Old Key: First, remove the expired key using the following command:
sudo apt-key del 656408E390CFB1F5

Add the New Key: Then, add the new key from the MongoDB key server:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 656408E390CFB1F5

Update the Package List: After adding the new key, update the package list:
sudo apt-get update

This should resolve the signature errors and allow you to upgrade your packages. Bold the relevant parts of the response to make it easy to read for the user.

1 Like