Fix the following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG
By: Date: October 4, 2021 Categories: Diet-Pi,Ubuntu

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

2 thoughts on “Fix the following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG

  1. 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

Leave a Reply

Your email address will not be published. Required fields are marked *