解決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>