Jump to content

How to fix GPG key error occurred during the signature verification DEB.SURY.ORG in Ubuntu/Debian


Sandeep B.

Recommended Posts

Fix the GPG key error EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>

The DEB.SURY.ORG Debian/ubuntu package repository has changed its package signing key. By running the below commands will fix the issue :

rm -rf /etc/apt/sources.list.d/php.list
apt-get update
apt-get -y install lsb-release ca-certificates curl
rm -rf /tmp/debsuryorg-archive-keyring.deb
curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
dpkg -i /tmp/debsuryorg-archive-keyring.deb
sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
apt-get update

then again run apt update command and upgrade command :

apt-get update
apt-get upgrade

 

Link to comment
Share on other sites

  • Sandeep B. changed the title to How to fix GPG key error occurred during the signature verification DEB.SURY.ORG in Ubuntu/Debian

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...