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

來源:互聯網
上載者:User

標籤:

[[email protected] yum.repos.d]# rpm -e --nodeps mysql
error: package mysql is not installed
[[email protected] yum.repos.d]# rpm -qa |grep mysql

[[email protected] 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

[[email protected] 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》[[email protected] 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》[[email protected] rpm-gpg]# pwd
/etc/pki/rpm-gpg

[[email protected] 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

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.