Chinaunix首页 | 论坛 | 博客
  • 博客访问: 143740
  • 博文数量: 68
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 720
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-28 20:01
文章分类

全部博文(68)

文章存档

2015年(68)

我的朋友

分类: 系统运维

2015-08-31 18:26:34

现象:

kenry@debian:~/utils$ rpm -ivh jdk-6u7-linux-i586.rpm 

error: Failed dependencies: 

/bin/sed is needed by jdk-1.6.0_07-fcs.i586

处理过程:

[root@server ~]# which sed

/bin/sed

[root@server ~]# sed --help

Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

............ 略 ............

可以看到sed是存在且可执行的

[root@server ~]# rpm --initdb

[root@server ~]# rpm --rebuilddb 怀疑是rpm的数据库没有sed软件包的信息,初始化和重建rpm 数据库后rpm还是不能识别出sed已经安装:

[root@server ~]# rpm -q sed

package sedd is not installed

 

解决方法:

为了省事,直接重装sed了事

[root@server ~]#wget ftp://ftp.nluug.nl/pub/os/Linux/distr/RedHat/ftp/redhat/linux/enterprise/5Client/en/os/SRPMS/sed-4.1.5-5.fc6.src.rpm
[root@server ~]#rpmbuild --rebuild sed-4.1.5-5.fc6.src.rpm
[root@server ~]#rpm -Uvh /usr/src/redhat/RPMS/x86_64/sed-4.1.5-5.x86_64.rpm

阅读(1270) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~