On 03/10/2012 05:00 AM, Gabriel Pinares wrote:
Hi, how I can repair my YUM ? I run: # yum --version|head -1 Traceback (most recent call last): File "/usr/bin/yum", line 4, in ? import yum File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 50, in ? import comps File "/usr/lib/python2.4/site-packages/yum/comps.py", line 23, in ? iterparse = cElementTree.iterparse AttributeError: 'module' object has no attribute 'iterparse' # yum update Traceback (most recent call last): File "/usr/bin/yum", line 4, in ? import yum File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 50, in ? import comps File "/usr/lib/python2.4/site-packages/yum/comps.py", line 23, in ? iterparse = cElementTree.iterparse AttributeError: 'module' object has no attribute 'iterparse' # Now, how I can repair my YUM? I am in CentOs 5.7
Download yum and other packages manually and use "rpm -ivh --force <package name>" or "rpm -ivh --force *.rpm" if you are in the folder where you downloaded rpms.
And here are all needed packages (should be), but note that version numbers might be old:
http://wiki.openvz.org/Install_yum -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman... StarOS, Mikrotik and CentOS/RHEL/Linux consultant _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxx http://lists.baseurl.org/mailman/listinfo/yum