The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already installed but……
Posted YoungerChina
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already installed but……相关的知识,希望对你有一定的参考价值。
问题描述
错误信息如下:
Downloading packages:
warning: /var/cache/yum/x86_64/7/mysql80-community/packages/mysql-community-server-8.0.31-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 keys listed for the "MySQL 8.0 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-8.0.31-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
解决方案
1、导入Key
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
2.重新安装
以上是关于The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already installed but……的主要内容,如果未能解决你的问题,请参考以下文章
The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already installed but……
linux-Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedo
Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7