解決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載入金鑰: