Re: CentOs 5.7 - YUM wrong

Ljubomir Ljubojevic <[email protected]>
Newsgroups gmane.linux.rpm.yum
Organization PL Computers s.z.t.r
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.