红联Linux门户
Linux帮助

yum 安装报 关于Public key for *.rpm is not installed 的解决方法

发布时间:2012-10-24 19:52:13来源:红联作者:静静飞舞
[root@0flowPC Desktop]# yum install wireshark-gnome.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package wireshark-gnome.x86_64 0:1.2.15-2.el6_2.1 will be installed
--> Processing Dependency: wireshark = 1.2.15-2.el6_2.1 for package: wireshark-gnome-1.2.15-2.el6_2.1.x86_64
--> Processing Dependency: libsmi for package: wireshark-gnome-1.2.15-2.el6_2.1.x86_64
--> Processing Dependency: libwsutil.so.0()(64bit) for package: wireshark-gnome-1.2.15-2.el6_2.1.x86_64
--> Processing Dependency: libwiretap.so.0()(64bit) for package: wireshark-gnome-1.2.15-2.el6_2.1.x86_64
--> Processing Dependency: libwireshark.so.0()(64bit) for package: wireshark-gnome-1.2.15-2.el6_2.1.x86_64
--> Processing Dependency: libsmi.so.2()(64bit) for package: wireshark-gnome-1.2.15-2.el6_2.1.x86_64
--> Running transaction check
---> Package libsmi.x86_64 0:0.4.8-4.el6 will be installed
---> Package wireshark.x86_64 0:1.2.15-2.el6_2.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
wireshark-gnome x86_64 1.2.15-2.el6_2.1 base 631 k
Installing for dependencies:
libsmi x86_64 0.4.8-4.el6 base 2.4 M
wireshark x86_64 1.2.15-2.el6_2.1 base 11 M

Transaction Summary
======================================================================================================================================
Install 3 Package(s)

Total download size: 14 M
Installed size: 76 M
Is this ok [y/N]: y
Downloading Packages:
--------------------------------------------------------------------------------------------------------------------------------------
Total 26 MB/s | 14 MB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY


Public key for wireshark-gnome-1.2.15-2.el6_2.1.x86_64.rpm is not installed


以上是完整的报错信息。

在网上找到了解决方法:
此时要导入rpm的签名信息即可
以root登录,执行下面命令
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

根据我的Linux版本是CentOS 5.4
于是我执行下面命令
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

问题终于得到解决!
文章评论

共有 6 条评论

  1. gky2009514 于 2012-12-07 11:19:31发表:

    新手完成任务,求下书籍~

  2. Xinchen 于 2012-12-03 17:38:24发表:

    有你更精彩

  3. a3521805 于 2012-11-14 15:05:43发表:

    加参数 --nogpgcheck 也应该可以吧。

  4. jjx0223 于 2012-10-30 00:35:26发表:

    感谢楼主的分享!!

  5. Growth兆 于 2012-10-25 09:50:02发表:

    感谢静静飞舞的分享,本贴加入到用Fedora必看 Fedora技术教程贴中

  6. gobeta 于 2012-10-24 21:36:32发表:

    学习学习