Advertisements

Fixing Invalid Signature Verification Error for Sury.org Repository

  • Post last modified:February 17, 2024
  • Post category:Linux
  • Post comments:0 Comments
  • Reading time:2 mins read

If you got any error something like this when you trying to update the Debian system then this post will help you.

Err:9 https://packages.sury.org/php bookworm InRelease
  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG                                                                                                                      Automatic Signing Key <[email protected]>

Advertisements

First you must run this commands in your root:

curl -sSlo /usr/share/keyrings/sury-keyring.gpg https://packages.sury.org/php/apt.gpg
curl -sSlo /usr/share/keyrings/apache2-keyring.gpg https://packages.sury.org/apache2/apt.gpg

And then run:

cd /usr/share/keyrings/
gpg --list-options show-sig-expire sury-keyring.gpg

You will get an output like this:

pub   rsa3072 2019-03-18 [SC] [expires: 2026-02-04]
      15058500A0235D97F5D10063B188E2B695BD4743
uid           DEB.SURY.ORG Automatic Signing Key <[email protected]>
sub   rsa3072 2019-03-18 [E] [expires: 2026-02-04]

Advertisements

after following these steps you can update the system without any issue thank you.

Leave a Reply