Xshell安装sql报错:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already instal

Xshell安装sql报错:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already instal,第1张

文章目录 Xshell安装sql报错:The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.报错信息、报错截图 · 示下:原因分析:解决办法:注意事项:



Xshell安装sql报错: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.


报错信息、报错截图 · 示下: 安装sql命令如下:
yum install mysql-community-server
如上述命令,要安装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.报错截图如下:

原因分析: GPG keys是安装包发布时生成的密钥,安装是需要核对密钥来确保安全性
解决办法:

yum 安装软件出现 gpg keys 相关问题

可以先尝试这个:

sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

然后再执行:

yum install mysql-community-server

不行的话,可以用这个:

sudo yum -y install * --nogpgcheck

注意事项: 如果上述 *** 作仍不能解决问题,只能建议卸载全部SQL相关模块及其所有文件夹,然后重新选择SQL元下载地址,重新安装SQL了。
【本人遇到过该情况,并成功处理,所以总结一下。】

【为问题而学】


以上就是关于“Xshell安装sql报错:The GPG keys listed for the “MySQL 8.0 Community Server” repository are already installed but they are not correct for this package.”的全部内容。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/991702.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存