Solve the GPG key problem when installing mysql-community-server
P粉317679342
2023-08-22 23:03:45
<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>
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: