在RHEL 6.6上用yum升级libcurl时出错

我试图通过yum update libcurl来更新RHEL 6服务器上的yum update libcurl 。 当我这样做时,我得到以下错误:

 Resolving Dependencies --> Running transaction check ---> Package libcurl.x86_64 0:7.19.7-40.el6_6.4 will be updated --> Processing Dependency: libcurl = 7.19.7-40.el6_6.4 for package: libcurl-devel-7.19.7-40.el6_6.4.x86_64 ---> Package libcurl.x86_64 0:7.19.7-46.el6 will be an update --> Running transaction check ---> Package libcurl-devel.x86_64 0:7.19.7-40.el6_6.4 will be updated ---> Package libcurl-devel.x86_64 0:7.19.7-46.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================== Updating: libcurl x86_64 7.19.7-46.el6 xxx-patch-nonprod-rhel-6 168 k Updating for dependencies: libcurl-devel x86_64 7.19.7-46.el6 xxx-patch-nonprod-rhel-6 246 k Transaction Summary =============================================================================================================================================================================== Upgrade 2 Package(s) Total size: 415 k Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug ERROR with rpm_check_debug vs depsolve: libcurl(x86-64) = 7.39.0-1.0.cf.rhel6 is needed by (installed) curl-7.39.0-1.0.cf.rhel6.x86_64 ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows: curl-7.39.0-1.0.cf.rhel6.x86_64 has missing requires of libcurl(x86-64) = ('0', '7.39.0', '1.0.cf.rhel6') Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2015-08-11-12-01SQI5ei.yumtx 

任何build议如何我可以解决这个问题?

您的系统已安装第三方city-fan存储库的curl副本。 不幸的是,有人没有正确安装, libcurl依赖与curl版本不匹配,因为libcurl仍然是Red Hat发布的版本。

如何解决这个问题取决于你是否真的打算使用curlcity-fan副本,或者是否应该删除它,并用红帽分布式版本代替。

如果你打算使用city-fan那么启用它的仓库(这个仓库是禁用的或者不存在的)并且再次尝试你的原始命令。 我不build议使用这个存储库,除非你确切地知道你在做什么,并且可以解决肯定会遵循的依赖性问题。 (如果可以的话,你现在不会在这里,所以我强烈build议不要使用这个回购。)

如果您打算使用Red Hat分布式软件,请删除city-fan存储库(如果存在),然后运行yum distro-sync 。 请注意,除了replace第三方软件包之外,这也会使系统保持最新状态。