Solución sencilla para el error "The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key”que aparece al intentar actualizar paquetes en sistemas Debian.
Err:10 https://packages.sury.org/php bullseye InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
Fetched 14.1 kB in 1s (14.5 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 bullseye InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: Failed to fetch https://packages.sury.org/php/dists/bullseye/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Este error también impide que los paquetes se actualicen en servidores Debian con WordUps. (wo stack upgrade
).
Relacionado: Cómo instalar y configurar LEMP en Debian 12
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key
Este error se produce porque sury.org cambió la clave de firma digital para Debian y, para solucionar el problema, necesita descargar la nueva clave.
apt-key adv --fetch-keys https://packages.sury.org/php/apt.gpg
Después de ejecutar este comando, puede actualizar todos los paquetes de Debian:
apt update && apt upgrade
los que usan WordOperaciones ejecutará la línea de comando:
wo stack upgrade
Todo funcionará sin problemas en la actualización de paquetes en Debian.