Add new comment

Today, when I try to update my server with sudo apt-get update I got the following error

sudo apt-get update
Hit jessie InRelease
Ign jessie InRelease
Hit jessie/updates InRelease
Ign jessie InRelease
Get:1 jessie Release.gpg [287 B]
Hit jessie Release.gpg
Get:2 jessie Release [2,331 B]
Hit jessie Release
Get:3 jessie/all amd64 Packages [86.5 kB]
Err jessie Release

Hit jessie/updates/main amd64 Packages
Hit jessie/updates/main Translation-en
Ign jessie/all Translation-en_US
Ign jessie/all Translation-en
Hit jessie/main amd64 Packages
Hit jessie/main Translation-en
Fetched 89.1 kB in 1s (67.2 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: jessie Release: The following signatures were invalid: KEYEXPIRED 1471427554

W: Failed to fetch

W: Some index files failed to download. They have been ignored, or old ones used instead.

it looks than the NGINX key is no longer valid ... So I check with the sudo apt-key list command.

sudo apt-key list

pub   2048R/7BD9BF62 2011-08-19 [expired: 2016-08-17]
uid                  nginx signing key <>


The key has expired !!

So you have to reinstall it, like in the tutorial of this topic with the 3 following commands:

cd /tmp
sudo apt-key add nginx_signing.key

And that's it  smiley

Server update with sudo apt-get update works again.
And if you run it again sudo apt-key list , you will find that the expiration date is in the future...

You must have Javascript enabled to use this form.