centos mysql安装报错:The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.


场景:

  安装mysql8的时候,之前没遇到这个问题,这次突然遇到新的问题(可能是之前装了mysql5.7?):The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.

解决:

  1.可以先尝试这个:

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

  然后在yum install mysql-community-server

  2.不行的话,可以用这个:

    sudo yum -y install * --nogpgcheck

  GPG keys是安装包发布时生成的密钥,安装是需要核对密钥来确保安全性

参考:

  https://www.cnblogs.com/gaohongyu/p/14479497.html


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM