免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2229 | 回复: 9
打印 上一主题 下一主题

急求助:安装RPM包出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-27 10:04 |只看该作者 |倒序浏览
大家看一下,这个应该怎么办啊
系统是RHEL5

[root@localhost SPECS]# rpm -ivh /root/rpm-build-4.4.2-37.el5.i386.rpm
warning: /root/rpm-build-4.4.2-37.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        elfutils is needed by rpm-build-4.4.2-37.el5.i386

谢谢了!

论坛徽章:
0
2 [报告]
发表于 2010-04-27 10:10 |只看该作者
在网上查到


在CentOS下有的时候用yum安装软件的时候最后会提示:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID*****
这是由于yum安装了旧版本的GPG keys造成的,解决办法就是:
rpm --import /etc/pki/rpm-gpg/RPM*
再安装软件就不会有这个错误提示了。

--试了一下:
[root@localhost SPECS]# rpm --import /etc/pki/rpm-gpg/RPM*
You have new mail in /var/spool/mail/root
[root@localhost SPECS]# rpm -ivh /root/rpm-build-4.4.2-37.el5.i386.rpm
error: Failed dependencies:
        elfutils is needed by rpm-build-4.4.2-37.el5.i386
[root@localhost SPECS]#


还是不行……

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
3 [报告]
发表于 2010-04-27 10:18 |只看该作者
需要安装依赖elfutils

论坛徽章:
5
寅虎
日期:2015-01-20 09:16:52亥猪
日期:2015-01-21 14:43:44IT运维版块每日发帖之星
日期:2015-12-17 06:20:00每日论坛发贴之星
日期:2015-12-17 06:20:00每周论坛发贴之星
日期:2015-12-20 22:22:00
4 [报告]
发表于 2010-04-27 10:19 |只看该作者
以后安装还是yum吧

论坛徽章:
0
5 [报告]
发表于 2010-04-27 10:24 |只看该作者
需要安装依赖elfutils
dooros 发表于 2010-04-27 10:18


怎么安装依赖elfutils啊?

论坛徽章:
0
6 [报告]
发表于 2010-04-27 10:24 |只看该作者
以后安装还是yum吧
gamester88 发表于 2010-04-27 10:19



    yum是什么啊,怎么用啊?

论坛徽章:
0
7 [报告]
发表于 2010-04-27 10:31 |只看该作者
[root@localhost SPECS]# yum list | grep elfutils
This system is not registered with RHN.
RHN support will be disabled.
No Repositories Available to Set Up
elfutils-libelf.i386                     0.125-3.el5            installed   

[root@localhost SPECS]# yum install rpm-build
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: rpm-build
Nothing to do
[root@localhost SPECS]#

[root@localhost SPECS]# yum install elfutils
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: elfutils
Nothing to do

论坛徽章:
0
8 [报告]
发表于 2010-04-27 10:47 |只看该作者
怎么安装依赖elfutils啊?
taoyoyo 发表于 2010-04-27 10:24



   是  yum install

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
9 [报告]
发表于 2010-04-27 11:08 |只看该作者
yun是一个包管理工具,自动解决依赖问题。

论坛徽章:
0
10 [报告]
发表于 2010-04-27 13:08 |只看该作者
已经解决了!
谢谢各位!

解决过程如:http://blog.chinaunix.net/u3/107265/showart_2223110.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP