For several days now I keep receiving the following error when running apt-get update command:
Hit:8 https://packages.sury.org/php stretch InRelease
Err:8 https://packages.sury.org/php stretch InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
I've attempted to update the key by running the following command but it does not help. For some reason, updated key is always reported as expired with its expiration date listed as being one day in the past. Looks really weird, has my system been hacked?
# wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
--2021-03-18 16:36:32-- https://packages.sury.org/php/apt.gpg
Resolving packages.sury.org (packages.sury.org)... 172.67.182.150, 104.21.18.148, 2606:4700
Connecting to packages.sury.org (packages.sury.org)|172.67.182.150|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1769 (1.7K) [application/octet-stream]
Saving to: ‘/etc/apt/trusted.gpg.d/php.gpg’
/etc/apt/trusted.gpg.d/php.gpg 100%[==========================================================>] 1.73K --.-KB/s in 0s
2021-03-18 16:36:32 (3.78 MB/s) - ‘/etc/apt/trusted.gpg.d/php.gpg’ saved [1769/1769]
apt-key list | grep -A 1 expired
Warning: apt-key output should not be parsed (stdout is not a terminal)
pub rsa3072 2019-03-18 [SC] [expired: 2021-03-17]
1505 8500 A023 5D97 F5D1 0063 B188 E2B6 95BD 4743
uid [ expired] DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
--
pub rsa4096 2016-02-21 [SC] [expired: 2020-12-06]
F8E3 3472 5692 2A8A E767 605B 7808 CE96 D38B 9201
uid [ expired] Jean-Francois Dockes <jf@dockes.org>
--
Bamyasi