Linux Study之--yum install错误
Linux Study之--yum install错误
系统环境:Oracle Linux5.4
在通过yum安装软件时出现以下错误:
1、yum配置文件
[root@rh168 yum.repos.d]# cat yum.repo [base] name=Oracle linux baseurl=file:///media/Server enable=1 gpcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
2、安装故障
[root@rh168 yum.repos.d]# yum install -y unix*
Loaded plugins: security base | 1.1 kB 00:00 base/primary | 795 kB 00:00 base 2278/2278 Setting up Install Process Package unix2dos-2.2-26.2.3.el5.i386 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated ---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated ---> Package unixODBC-kde.i386 0:2.2.11-7.1 set to be updated --> Finished Dependency Resolution Dependencies Resolved ====================================================================================================================================== Package Arch Version Repository Size ====================================================================================================================================== Installing: unixODBC i386 2.2.11-7.1 base 830 k unixODBC-devel i386 2.2.11-7.1 base 743 k unixODBC-kde i386 2.2.11-7.1 base 560 k Transaction Summary ====================================================================================================================================== Install 3 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 2.1 M Downloading Packages: -------------------------------------------------------------------------------------------------------------------------------------- Total 1.0 GB/s | 2.1 MB 00:00
错误提示:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159
base/gpgkey | 1.5 kB 00:00
Public key for unixODBC-kde-2.2.11-7.1.i386.rpm is not installed
--安装失败!
3、解决方法
从 RPM 版本 4.1 开始,在安装或升级软件包时会检查软件包的签名。如果签名校验失败,你就会看到如下所示
的错误消息:
error: V3 DSA signature: BAD, key ID 0352860f
如果它是新的、只针对文件头的签名,你会看到如下所示的错误消息:
error: Header V3 DSA signature: BAD, key ID 0352860f
如果你没有安装合适的钥匙来校验签名,消息中就会包含 NOKEY ,如:
warning: V3 DSA signature: NOKEY, key ID 0352860f
在CentOS下有的时候用yum安装软件的时候最后会提示:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID*****
这是由于yum安装了旧版本的GPG keys造成的,解决办法就是
#rpm --import /etc/pki/rpm-gpg/RPM*
[root@rh168 yum.repos.d]# rpm --import /etc/pki/rpm-gpg/RPM*
4、重新安装
[root@rh168 yum.repos.d]# yum install -y unix*
Loaded plugins: security Setting up Install Process Package unix2dos-2.2-26.2.3.el5.i386 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated ---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated ---> Package unixODBC-kde.i386 0:2.2.11-7.1 set to be updated --> Finished Dependency Resolution Dependencies Resolved ====================================================================================================================================== Package Arch Version Repository Size ====================================================================================================================================== Installing: unixODBC i386 2.2.11-7.1 base 830 k unixODBC-devel i386 2.2.11-7.1 base 743 k unixODBC-kde i386 2.2.11-7.1 base 560 k Transaction Summary ====================================================================================================================================== Install 3 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 2.1 M Downloading Packages: -------------------------------------------------------------------------------------------------------------------------------------- Total 1.2 GB/s | 2.1 MB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : unixODBC 1/3 Installing : unixODBC-kde 2/3 Installing : unixODBC-devel 3/3 Installed: unixODBC.i386 0:2.2.11-7.1 unixODBC-devel.i386 0:2.2.11-7.1 unixODBC-kde.i386 0:2.2.11-7.1 Complete!
--至此,软件包安装成功!
本文出自 “天涯客的blog” 博客,请务必保留此出处http://tiany.blog.51cto.com/513694/1617105
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。