这台服务器当前安装的是 kubernetes 1.17.0,准备升级至最新版,但运行 apt update 时报错,报错信息如下:
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://mirrors.aliyun.com/kubernetes/apt kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB
W: Failed to fetch https://mirrors.aliyun.com/kubernetes/apt/dists/kubernetes-xenial/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB
请问如何解决?
用下面的命令重新添加 apt-key 后解决
curl https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | apt-key add -