搜索

首页  >  问答  >  正文

解决mysql-community-server安装时的GPG密钥问题

<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>
P粉317679342P粉317679342463 天前528

全部回复(1)我来回复

  • P粉211600174

    P粉2116001742023-08-23 11:08:45

    来源:https://dev.mysql.com/doc/refman/8.0/en/checking-rpm-signature.html

    没有单独的签名。RPM软件包具有内置的GPG签名和MD5校验和。

    rpm还支持直接从URL加载密钥:

    rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

    回复
    0
  • 取消回复