admin管理员组

文章数量:1626246

文章目录

  • 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 相关问题

  1. 可以先尝试这个:

    sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
    
  2. 然后再执行:

    yum install mysql-community-server
    
  3. 不行的话,可以用这个:

    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.”的全部内容。

本文标签: 报错KeyslistedgpgXShell