The following signatures couldn't be verified because the public key is not available: NO_PUBKEY xxx

在给Ubuntu替换了镜像源执行update时报错,错误日志如下:

W: GPG error: https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8

提示我们NO_PUBKEY,可以通过下面命令去修复,将每一个NO_PUBKEY后面的字符串替换掉下面的修复语句中XXXXXX

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com XXXXXX
apt-get update

这样就好了。

你可能感兴趣的:(ubuntu,镜像源,Ubuntu)