Fixing Invalid Signature Verification Error for 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 bookworm InRelease
  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG                                                                                                                      Automatic Signing Key <[email protected]>


First you must run this commands in your root:

curl -sSlo /usr/share/keyrings/sury-keyring.gpg
curl -sSlo /usr/share/keyrings/apache2-keyring.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]
uid           DEB.SURY.ORG Automatic Signing Key <[email protected]>
sub   rsa3072 2019-03-18 [E] [expires: 2026-02-04]


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

Leave a Reply