How to fix «GPG error» for «packages.sury.org»?

W: GPG error: Index of /php/ stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AC0E47584A7A714D
W: The repository 'Index of /php/ stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg

packages.sury.org/php/README.txt

2 Likes