解决mysql-community-server安装时的GPG密钥问题
P粉317679342
2023-08-22 23:03:45
<p>安装<strong>mysql-community-server</strong>时出现以下错误:</p>
<p><strong>命令:</strong></p>
<pre class="brush:php;toolbar:false;">sudo yum install mysql-community-server</pre>
<p><strong>错误:</strong></p>
<pre class="brush:php;toolbar:false;">warning: /var/cache/yum/x86_64/2/mysql57-community/packages/mysql-community-libs-compat-5.7.37-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
"MySQL 5.7 Community Server"仓库的GPG密钥已经安装,但对于此软件包来说不正确。
请检查是否为此仓库配置了正确的密钥URL。
失败的软件包是:mysql-community-libs-compat-5.7.37-1.el7.x86_64
GPG密钥配置为:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql</pre>
<p>有人能帮忙吗...</p>
来源:https://dev.mysql.com/doc/refman/8.0/en/checking-rpm-signature.html
没有单独的签名。RPM软件包具有内置的GPG签名和MD5校验和。
rpm还支持直接从URL加载密钥: