Redhat

在 RHEL 6.6 上使用 yum 升級 libcurl 時出錯

  • August 11, 2015

我正在嘗試通過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

有什麼建議我可以解決這個問題嗎?

curl您的系統安裝了第三方city-fan儲存庫的副本。不幸的是,有人沒有正確安裝它,並且它的libcurl依賴項與 的版本不匹配curl,因為libcurl它仍然是 Red Hat 提供的。

如何解決這個問題取決於您是否真的打算使用 的city-fan副本curl,或者是否應該將其刪除並替換為 Red Hat 分發版本。

如果您打算使用,city-fan則啟用其儲存庫(已禁用或不存在)並再次嘗試您的原始命令。我不建議使用此儲存庫,除非您確切知道自己在做什麼並且可以解決肯定會出現的依賴問題。(如果可以的話,你現在不會在這裡,所以我強烈建議不要使用這個 repo。)

如果您打算使用 Red Hat 分佈式軟體,請刪除city-fan儲存庫(如果存在),然後執行yum distro-sync. 請注意,除了更換第三方軟體包外,這還將使系統保持最新。

引用自:https://serverfault.com/questions/713389