When trying to update Debian, Ubuntu, or DietPI you may get this error:
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
This is due to a certificate expired issue the occurred this year.
Here is the easy fix that you can perform in two commands:
sudo apt-key del B188E2B695BD4743
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
After be sure you that you can now perform the following:
apt update
apt upgrade
Many thanks!! I found the explanation and the “fix” to download the new key gazillion times on the web but it didn’t fix it for me.
Your blog post finally solved it for me: I need to delete the key 🙂
Many thanks
Your welcome, glad you found it helpful.