What if our Sury.org repository is not updated due to a GPG signing error on our Debian server?

botond published March 2021, 03, Thu - 18:08 time

Content

 

Introductory

If unique PHP We use versions of our Debian server that are available from Sury.org in the trunk we update via then we have previously configured this repositorywhat worked before was APT he updated the packages from it without any problems. However, an update may cause an error in the package manager and you may not be able to access the latest packages. We will remedy this problem in this short troubleshooter.

 

The symptom

When rootissue the command to update the repository database on a Debian 10 (Buster) system:

apt-get update

then we get the following error or something like this:

Hiba:4 https://packages.sury.org/php buster InRelease
  Az alábbi aláírások érvénytelenek voltak: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
Csomaglisták olvasása... Kész
W: Hiba történt az aláírás ellenőrzése közben. A tároló nem frissült, és az előző indexfájl lesz használva. GPG hiba: https://packages.sury.org/php buster InRelease: Az alábbi aláírások érvénytelenek voltak: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: Sikertelen letöltés: https://packages.sury.org/php/dists/buster/InRelease  Az alábbi aláírások érvénytelenek voltak: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
W: Néhány indexfájlt nem sikerült letölteni. Figyelmen kívül lettek hagyva, vagy régebbiek lettek felhasználva.

Sury.org repository upgrade error on Debian

 

The solution

The signing key for the Sury.org DPA has changed, so we need to change it again. All you have to do is run one command as root:

wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg

Then our boot databases are updated again:

apt-get update

Sury.org repository update fixed

 

Conclusion

If at any time the signature key of a repository changes, as it does now of the Sury.org repository, all you have to do is re-download the fresh GPG key and our repository database will be updated. This does not affect any of the Launchpad PPAs (on Ubuntu systems), only the Debian repositories.

 

 

Hozzászólások

Hello,

You may need to remove the key first (I just succeeded)

apt-key del 95BD4743

wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg