Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

yum安裝mysql5.7 下載安裝包警告提示信息:

Total download size: 194 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.26-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY                                                                              ]  0.0 B/s |  90 kB  --:--:-- ETA 
Public key for mysql-community-common-5.7.26-1.el7.x86_64.rpm is not installed

下載軟件包完成,安裝的時候提示信息:

Total                                                                                                                                                                                                                                            49 kB/s | 194 MB  01:06:58     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


The GPG keys listed for the "MySQL 5.7 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.


 Failing package is: mysql-community-server-5.7.26-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

網上有不少問題的方法,其實最簡單就是修改yum源,對應安裝的版本不檢查GPG key就能夠解決。mysql

安裝mysql使用的是官方的源配置文件:/etc/yum.repos.d/mysql-community.reposql

gpgcheck 設置的值設置爲0便可this

相關文章
相關標籤/搜索