首页 新闻 搜索 专区 学院

ubuntu 运行 apt-get update 时阿里云 k8s 安装源报错

0
悬赏园豆:30 [已解决问题] 解决于 2021-07-17 09:10

Ubuntu 18.04 运行 apt-get 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
W: Some index files failed to download. They have been ignored, or old ones used instead.

之前通过下面的命令添加过阿里云 k8s 安装源

cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
deb https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main
EOF
gpg --keyserver keyserver.ubuntu.com --recv-keys BA07F4FB
gpg --export --armor BA07F4FB | sudo apt-key add -

请问如何解决?

dudu的主页 dudu | 高人七级 | 园豆:36499
提问于:2021-07-17 08:52
< >
分享
最佳答案
0

通过下面的命令添加 apt key 之后问题解决

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