首頁  >  問答  >  主體

解決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粉317679342424 天前480

全部回覆(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
  • 取消回覆