首页 新闻 会员 周边 捐助

安装了 k8s 的服务器运行 apt update 报错

0
悬赏园豆:30 [已解决问题] 解决于 2022-02-20 17:58

这台服务器当前安装的是 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

请问如何解决?

dudu的主页 dudu | 高人七级 | 园豆:30734
提问于:2022-02-20 17:09
< >
分享
最佳答案
1

用下面的命令重新添加 apt-key 后解决

curl https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | apt-key add -
dudu | 高人七级 |园豆:30734 | 2022-02-20 17:58
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册