EXPKEYSIG B188E2B695BD4743

Seit ein paar Tagen ist der APT signing key von sury.org abgelaufen und es wird die Fehlermeldung bei aktualisieren der Paketquellen angezeigt:

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>

W: An error occurred during the signature verification. The repository is not
updated and the previous index files will be used. GPG error:
https://packages.sury.org/php stretch InRelease: The following signatures were
invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key
<deb@sury.org>

Das Problem läßt sich schnell beheben, in dem der aktuelle Key installiert wird. Um Konflikte zu vermeiden, sollte der alte Key vorher aus dem System entfernt werden.

apt-key del B188E2B695BD4743
wget https://packages.sury.org/php/apt.gpg -qO - | apt-key add -    
apt update

Neuere Systeme erwarten den Key an einer anderen Stelle:

apt-key del B188E2B695BD4743
wget https://packages.sury.org/php/apt.gpg -qO - | gpg --enarmor > /etc/apt/trusted.gpg.d/sury.org.asc
apt update