При обновлении пакетов с помощью apticron
– apt
сообщает об ошибке при проверке GPG-ключа репозитория NGINX:
$ sudo /usr/sbin/apticron --cron W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://nginx.org jessie Release: The following signatures were invalid: KEYEXPIRED 1471427554 W: Failed to fetch http://nginx.org/packages/debian/dists/jessie/Release W: Some index files failed to download. They have been ignored, or old ones used instead.
Находим ключ:
$ sudo apt-key list | grep -a1 nginx pub 2048R/7BD9BF62 2011-08-19 [expired: 2016-08-17] uid nginx signing key <[email protected]>
Срок его действия закончился: expired: 2016-08-17
Получаем новый:
$ wget https://nginx.org/keys/nginx_signing.key -O - | sudo apt-key add -
Проверяем ещё раз:
$ sudo apt-key list | grep -a1 nginx pub 2048R/7BD9BF62 2011-08-19 [expires: 2024-06-14] uid nginx signing key <[email protected]>
Теперь он expires: 2024-06-14
Готово.