• Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY


    yum安装mysql5.7 下载安装包警告提示信息:

    Total download size: 194 M
    Downloading packages:
    warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.26-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY                                                                              ]  0.0 B/s |  90 kB  --:--:-- ETA 
    Public key for mysql-community-common-5.7.26-1.el7.x86_64.rpm is not installed
    
    

    下载软件包完成,安装的时候提示信息:

    Total                                                                                                                                                                                                                                            49 kB/s | 194 MB  01:06:58     
    Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
    
    
    The GPG keys listed for the "MySQL 5.7 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-5.7.26-1.el7.x86_64
     GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
    
    

    网上有很多问题的方法,其实最简单就是修改yum源,对应安装的版本不检查GPG key就可以解决。

    安装mysql使用的是官方的源配置文件:/etc/yum.repos.d/mysql-community.repo

    gpgcheck 设置的值设置为0即可

  • 相关阅读:
    Java泛型 E、T、K、V、N
    二维码生成,二维码中嵌套图片,文字生成图片
    线程之线程安全解决
    多线程的卖票示例来理解两种创建线程方法的区别
    多线程
    Object类
    Runtime
    9.Lambda表达式入门
    匿名内部类
    局部内部类
  • 原文地址:https://www.cnblogs.com/zqsb/p/11115454.html
Copyright © 2020-2023  润新知