Home  >  Q&A  >  body text

Solve the GPG key problem when installing mysql-community-server

<p>The following error occurred while installing <strong>mysql-community-server</strong>: </p> <p><strong>Command: </strong></p> <pre class="brush:php;toolbar:false;">sudo yum install mysql-community-server</pre> <p><strong>Error: </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 The GPG key for the "MySQL 5.7 Community Server" repository is installed, but is incorrect for this package. Please check that the correct key URL is configured for this repository. The failed package is: mysql-community-libs-compat-5.7.37-1.el7.x86_64 The GPG key is configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql</pre> <p>Can anyone help...</p>
P粉317679342P粉317679342424 days ago478

reply all(1)I'll reply

  • P粉211600174

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

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

    There is no separate signature. RPM packages have built-in GPG signing and MD5 checksums.

    rpm also supports loading keys directly from URL:

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

    reply
    0
  • Cancelreply