您的位置:首页 > 产品设计 > 产品经理

安装mysql 偶遇:warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY

2014-12-19 21:03 288 查看
[root@localhost yum.repos.d]# rpm -e --nodeps mysql

error: package mysql is not installed

[root@localhost yum.repos.d]# rpm -qa |grep mysql

[root@localhost yum.repos.d]# yum install mysql

================================================================================

 Package           Arch            Version                  Repository     Size

================================================================================

Installing:

 mysql             i386            5.0.95-5.el5_9           base          4.9 M

 mysql             x86_64          5.0.95-5.el5_9           base          4.9 M

Installing for dependencies:

 perl-DBI          x86_64          1.52-2.el5               base          600 k

Transaction Summary

================================================================================
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897    -------------->没有gpg key

base/gpgkey                                              | 1.7 kB     00:00     

Public key for mysql-5.0.95-5.el5_9.x86_64.rpm is not installed

---------使用 option: --nogpgcheck

[root@localhost yum.repos.d]# yum install mysql --nogpgcheck

================================================================================

 Package           Arch            Version                  Repository     Size

================================================================================

Installing:

 mysql             i386            5.0.95-5.el5_9           base          4.9 M

 mysql             x86_64          5.0.95-5.el5_9           base          4.9 M

Installing for dependencies:

 perl-DBI          x86_64          1.52-2.el5               base          600 k

Transaction Summary

================================================================================                                                                                               

Complete!

解决办法:

1》yum install mysql --nogpgcheck   /* --nogpgcheck     disable gpg signature checking*/

2》[root@localhost yum.repos.d]# rpm --import /ISO镜像完整路径/rpm-gpg/RPM-GPG-KEY-redhat-release
error: /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release: import read failed(-1).

3》[root@localhost rpm-gpg]# pwd

/etc/pki/rpm-gpg

[root@localhost rpm-gpg]# ll

total 40

-rw-r--r-- 1 root root 1397 Feb 25  2012 RPM-GPG-KEY

-rw-r--r-- 1 root root 1744 Feb 25  2012 RPM-GPG-KEY-EL4

-rw-r--r-- 1 root root 1519 Feb 25  2012 RPM-GPG-KEY-fedora

-rw-r--r-- 1 root root 1076 Feb 25  2012 RPM-GPG-KEY-fedora-test

-rw-r--r-- 1 root root 1397 Feb 25  2012 RPM-GPG-KEY-oracle

rpm --import /etc/pki/rpm-gpg/RPM* 

4》如果可以连外网可以使用下面的方法

RHEL7:

rpm --import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

RHEL6:

rpm --import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

RHEL5

rpm --import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5
RHEL4

rpm --import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS4
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐