CentOS,YUM 错误?

CentOS,YUM 错误?

我在 CentOS 上使用 Media Temple DV 服务器,尝试通过 yum 安装 ImageMagick 时出现以下错误:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /usr/lib/python2.4/site-packages/rpm/_rpmmodule.so: undefined symbol: rpmdbCheckTerminate

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.4.3 (#1, May 24 2008, 13:47:28) 
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

有人能告诉我该怎么做才能解决这个问题吗?

谢谢!

答案1

您的rpmrpm-python版本不同步。如果您构建了自己的 rpm 但没有构建 Python 绑定,反之亦然,则可能会发生这种情况。运行rpm -q rpm rpm-python并比较返回的版本,然后rpm -V rpm rpm-python验证软件包文件的完整性。

答案2

我也遇到了同样的问题,更糟糕的是,如果你使用的是 Media Temple,请确保开发人员工具和 Root 已打开 ;)

相关内容