apt update时出现签名无法验证,公钥失效的解决办法

错误信息如下

W: GPG error: http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4EA0AAE5267A6C

解决办法, 缺什么加什么

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4F4EA0AAE5267A6C

以下是问题遇到和解决的过程详细图

原文地址:https://www.cnblogs.com/ailhc/p/8543594.html