CentOS yum 失败,并显示 libcurl.so.4 错误,指出"未定义的符号:libssh2_agent_disconnect"



我正在使用 CentOS 7 并尝试使用 yum 但失败了。 早些时候,我安装了 curl 和其他东西,但看起来 libcurl 出错了。

每当我尝试:

# yum

结果是:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
/lib64/libcurl.so.4: undefined symbol: libssh2_agent_disconnect
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Apr  9 2019, 14:30:50) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
If you cannot solve this problem yourself, please go to 
the yum faq at:
http://yum.baseurl.org/wiki/Faq

我尝试删除库,但它没有帮助。 任何人都可以找到解决方案吗?

问题是符号链接问题。

以下命令解决了它。

ldd -r /usr/lib64/libcurl.so.4
rm /usr/local/lib/libssh2.so.1

我查看了与 libcurl 是否有任何断开的符号链接,我找到了一个并将其删除。

最新更新