[Debian] Expired GPG Key PHP

When running apt-get update you see the following error message:

The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]

Fetched 263 kB in 2s (170 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: https://packages.sury.org/php buster InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]

W: Failed to fetch https://packages.sury.org/php/dists/buster/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]

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

To fix the issue:

apt-key adv --fetch-keys ‘https://packages.sury.org/php/apt.gpg’ > /dev/null 2>&1

3 Likes

Issue is solved after updating to 1.3.5 Please run

apt-get update && apt-get upgrade

2 Likes