public key is not available
复现
将Ubuntu的源修改为国内源的之后,执行
sudo apt-get update
出现问题:
GPG error: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F271FCD1
解决方法
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com XXXX
XXXX:错误提示中的公钥。本处是:7EA0A9C3F271FCD1