Yum无法解析$ PATH中现有文件的依赖关系

时间:2013-09-04 03:26:47

标签: linux

我正在尝试安装rpm并且由于未解决的依赖性而失败。文件libc.so.6是$ PATH的路径,所以不知道它在抱怨什么。

# yum install libdb-5.3.21-3.fc18.x86_64.rpm                      Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
Setting up Install Process
Examining libdb-5.3.21-3.fc18.x86_64.rpm: libdb-5.3.21-3.fc18.x86_64
Marking libdb-5.3.21-3.fc18.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package libdb.x86_64 0:5.3.21-3.fc18 set to be updated
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: libdb

--> Processing Dependency: libc.so.6(GLIBC_2.15)(64bit) for package: libdb
--> Processing Conflict: libdb conflicts filesystem < 3
--> Finished Dependency Resolution
libdb-5.3.21-3.fc18.x86_64 from /libdb-5.3.21-3.fc18.x86_64 has depsolving problems
  --> libdb conflicts with filesystem
libdb-5.3.21-3.fc18.x86_64 from /libdb-5.3.21-3.fc18.x86_64 has depsolving problems
  --> Missing Dependency: libc.so.6(GLIBC_2.14)(64bit) is needed by package libdb-5.3.21-3.fc18.x86_64 (/libdb-5.3.21-3.fc18.x86_64)
libdb-5.3.21-3.fc18.x86_64 from /libdb-5.3.21-3.fc18.x86_64 has depsolving problems
  --> Missing Dependency: libc.so.6(GLIBC_2.15)(64bit) is needed by package libdb-5.3.21-3.fc18.x86_64 (/libdb-5.3.21-3.fc18.x86_64)
Error: libdb conflicts with filesystem
Error: Missing Dependency: libc.so.6(GLIBC_2.14)(64bit) is needed by package libdb-

5.3.21-3.fc18.x86_64 (/libdb-5.3.21-3.fc18.x86_64)
Error: Missing Dependency: libc.so.6(GLIBC_2.15)(64bit) is needed by package libdb-5.3.21-3.fc18.x86_64 (/libdb-5.3.21-3.fc18.x86_64)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.


[root@db1 php]# locate libc.so.6
/lib/libc.so.6
/lib/i686/nosegneg/libc.so.6
/lib64/libc.so.6
/u01/oracle/112/lib/stubs/libc.so.6

 echo $PATH
/lib64:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:    /usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/lib64/:/usr/lib:/u01/oracle/112/lib:/usr/lib/:/usr/lib64/:/usr/local/apr/lib:/usr/lib/:/usr/lib:/usr/lib64:/usr/local/apr/lib:/usr/local/src:/usr/lib

2 个答案:

答案 0 :(得分:1)

你是在安装这个Fedora RPM的CentOS系统吗?在大多数情况下,Fedora RPM是针对较新版本的中间件和库构建的,而不是CentOS。

在我的CentOS 6机器上:

$ rpm -qp --conflicts /tmp/libdb-5.3.21-3.fc18.x86_64.rpm
filesystem < 3

$ rpm -qa | grep filesystem
filesystem-2.4.30-3.el6.x86_64

我找到了spec文件,并且对于小于3.0的版本,包filesystem存在明显冲突。

此外,RPM要求GLIBC高于您可能正在运行的GLIBC。

$ rpm -qa | grep glibc
glibc-2.12-1.80.el6_3.6.x86_64

答案 1 :(得分:0)

yum使用的RPM不会查看文件系统。它查看rpmdb。相同的rpmdb,不包含该依赖项。