数週間前に、公式ウェブサーバのOSであるCentOSを4から5にアップグレードしたのだが、それ以来、パッケージ管理ソフトのyumが起動しなくて困っていた。

yumを起動すると、

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

No module named cElementTree

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, Mar 14 2007, 18:51:08)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)]
If you cannot solve this problem yourself, please go to
the yum faq at:
https://wiki.linux.duke.edu/YumFaq

こんなエラーメッセージが出て、パッケージの更新が出来ない。

どうやら、Pythonのバージョンと整合性が合っていないようなので、バージョンダウンする。

# rpm -Uvh –force \
https://isoredirect.centos.org/centos/5.0/os/i386/
CentOS/python-elementtree-1.2.6-5.i386.rpm

それと、DAGがCenoOS4のままになっているので、5用のDAGに更新
<br /># wget https://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br /># rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br />
この後に、
<br /> # yum clean all<br /> # yum update<br />
これで、無事解決