Ubuntu public key is not available的错误

Posted 全速前行

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu public key is not available的错误相关的知识,希望对你有一定的参考价值。

今天要安装mysql,在install之前要执行一下upgrate,那么接着就报下面的错误了:

W: GPG error: http://archive.ubuntukylin.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D259B7555E1D3C58

貌似是公钥不可以用了,需要获取新的key,命令如下:

10:02linc@Linc-Ubuntu:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D259B7555E1D3C58
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.JXx8td77hP --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys D259B7555E1D3C58
gpg: requesting key 5E1D3C58 from hkp server keyserver.ubuntu.com
gpg: key 5E1D3C58: public key "Ubuntu Kylin Archive Automatic Signing Key <council@ubuntukylin.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)



以上是关于Ubuntu public key is not available的错误的主要内容,如果未能解决你的问题,请参考以下文章

Public Key Retrieval is not allowed

Public Key Retrieval is not allowed

Public Key Retrieval is not allowed解决

Mysql8- Public Key Retrieval is not allowed

Public key for mysql....rpm is not installed

JDBC连接MySQL 8时报错:MySQLNonTransientConnectionException: Public Key Retrieval is not allowed