首页 > 代码库 > yum install错误 系统环境:Oracle Linux5.4 在通过yum安装软件时出现以下错误:

yum install错误 系统环境:Oracle Linux5.4 在通过yum安装软件时出现以下错误:

1、yum配置文件

1[root@rh168 yum.repos.d]# cat yum.repo 
2[base]
3name=Oracle linux 
4baseurl=file:///media/Server
5enable=1
6gpcheck=0
7gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

2、安装故障

[root@rh168 yum.repos.d]# yum install -y unix*

01Loaded plugins: security
02base                                                                                               | 1.1 kB     00:00     
03base/primary                                                                                       | 795 kB     00:00     
04base                                                                                                                        2278/2278
05Setting up Install Process
06Package unix2dos-2.2-26.2.3.el5.i386 already installed and latest version
07Resolving Dependencies
08--> Running transaction check
09---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated
10---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated
11---> Package unixODBC-kde.i386 0:2.2.11-7.1 set to be updated
12--> Finished Dependency Resolution
13Dependencies Resolved
14======================================================================================================================================
15 Package                              Arch                       Version                             Repository                  Size
16======================================================================================================================================
17Installing:
18 unixODBC                             i386                       2.2.11-7.1                          base                       830 k
19 unixODBC-devel                       i386                       2.2.11-7.1                          base                       743 k
20 unixODBC-kde                         i386                       2.2.11-7.1                          base                       560 k
21Transaction Summary
22======================================================================================================================================
23Install      3 Package(s)         
24Update       0 Package(s)         
25Remove       0 Package(s)         
26Total download size: 2.1 M
27Downloading Packages:
28--------------------------------------------------------------------------------------------------------------------------------------
29Total                                                                                                 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*

view source
 
01Loaded plugins: security
02Setting up Install Process
03Package unix2dos-2.2-26.2.3.el5.i386 already installed and latest version
04Resolving Dependencies
05--> Running transaction check
06---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated
07---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated
08---> Package unixODBC-kde.i386 0:2.2.11-7.1 set to be updated
09--> Finished Dependency Resolution
10Dependencies Resolved
11======================================================================================================================================
12 Package                              Arch                       Version                             Repository                  Size
13======================================================================================================================================
14Installing:
15 unixODBC                             i386                       2.2.11-7.1                          base                       830 k
16 unixODBC-devel                       i386                       2.2.11-7.1                          base                       743 k
17 unixODBC-kde                         i386                       2.2.11-7.1                          base                       560 k
18Transaction Summary
19======================================================================================================================================
20Install      3 Package(s)         
21Update       0 Package(s)         
22Remove       0 Package(s)         
23Total download size: 2.1 M
24Downloading Packages:
25--------------------------------------------------------------------------------------------------------------------------------------
26Total                                                                                                 1.2 GB/s | 2.1 MB     00:00     
27Running rpm_check_debug
28Running Transaction Test
29Finished Transaction Test
30Transaction Test Succeeded
31Running Transaction
32  Installing     : unixODBC                                                                                                       1/3 
33  Installing     : unixODBC-kde                                                                                                   2/3 
34  Installing     : unixODBC-devel                                                                                                 3/3 
35Installed:
36  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              
37Complete!

--至此,软件包安装成功!

转:http://www.51itong.net/linux-study-yum-install-8388.html

yum install错误 系统环境:Oracle Linux5.4 在通过yum安装软件时出现以下错误: