ubuntu 安装docker GPG error缺少公钥解决方法

2023-12-28 10:31:08

报错信息

W: GPG error: http://mirrors.aliyun.com/docker-ce/linux/ubuntu focal InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
E: The repository ‘http://mirrors.aliyun.com/docker-ce/linux/ubuntu focal InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@VM-16-14-ubuntu:/# sudo apt install docker-ce docker-ce-cli containerd.io

解决方案

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8

文章来源:https://blog.csdn.net/xiaohua616/article/details/135240385
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。