yum install错误 系统环境:Oracle Linux5.4 在通过yum安装软件时出现以下错误:
2024-08-13 11:29:07 219人阅读
1、yum配置文件
1 | [root@rh168 yum.repos.d]# cat yum.repo |
2、安装故障
[root@rh168 yum.repos.d]# yum install -y unix*
01 | Loaded plugins: security |
03 | base/primary | 795 kB 00 : 00 |
05 | Setting up Install Process |
06 | Package unix2dos- 2.2 - 26.2 . 3 .el5.i386 already installed and latest version |
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 |
14 | ====================================================================================================================================== |
15 | Package Arch Version Repository Size |
16 | ====================================================================================================================================== |
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 |
22 | ====================================================================================================================================== |
26 | Total download size: 2.1 M |
28 | -------------------------------------------------------------------------------------------------------------------------------------- |
29 | 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*
01 | Loaded plugins: security |
02 | Setting up Install Process |
03 | Package unix2dos -2.2 -26.2. 3. el5.i386 already installed and latest version |
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 |
11 | ====================================================================================================================================== |
12 | Package Arch Version Repository Size |
13 | ====================================================================================================================================== |
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 |
19 | ====================================================================================================================================== |
23 | Total download size: 2.1 M |
25 | -------------------------------------------------------------------------------------------------------------------------------------- |
26 | Total 1.2 GB/s | 2.1 MB 00 : 00 |
27 | Running rpm_check_debug |
28 | Running Transaction Test |
29 | Finished Transaction Test |
30 | Transaction Test Succeeded |
32 | Installing : unixODBC 1 / 3 |
33 | Installing : unixODBC-kde 2 / 3 |
34 | Installing : unixODBC-devel 3 / 3 |
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 |
--至此,软件包安装成功!
转:http://www.51itong.net/linux-study-yum-install-8388.html
yum install错误 系统环境:Oracle Linux5.4 在通过yum安装软件时出现以下错误:
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉:
投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。