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

posted @   陈子白  阅读(7403)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示