Results 1 to 10 of 11
Hi.
My YUM is wrong.
When I try paste here the code SHELL forever you system say:
" You are only allowed to post URLs ( ) to other sites ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-10-2012 #1Just Joined!
- Join Date
- Mar 2012
- Posts
- 7
CentOs 5.7 - YUM wrong
Hi.
My YUM is wrong.
When I try paste here the code SHELL forever you system say:
" You are only allowed to post URLs ( ) to other sites after you have made 15 posts or more.
Please what I can do ?
Thanks
I no find solution.
I am in CentOs 5.7
- 03-10-2012 #2Just Joined!
- Join Date
- Mar 2012
- Posts
- 7
root@s1 []# 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'
root@s1 []#
- 03-11-2012 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,140
What did you do after installing CentOS 5.7? Something has corrupted your python environment (YUM is a python-based tool).
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 03-11-2012 #4Just Joined!
- Join Date
- Mar 2012
- Posts
- 7
Thanks .
This is my sistem:
I try install ElementTree of Python .PHP Code:== BEGIN uname -rmi ==
2 . 6 . 18-274 . el5 . 028stab093 . 2 i686 i386
== END uname -rmi ==
== BEGIN rpm -qa \*-release\* ==
rpmforge-release-0 . 5 . 2-2 . el4 . rf
centos-release-5-7 . el5 . centos
centos-release-notes-5 . 7-0
== END rpm -qa \*-release\* ==
== BEGIN cat /etc/redhat-release ==
CentOS release 5 . 7 (Final)
== END cat /etc/redhat-release ==
== BEGIN getenforce ==
Disabled
== END getenforce ==
== BEGIN free -m ==
total used free shared buffers cached
Mem: 1024 740 284 0 0 0
-/+ buffers/cache: 740 284
Swap: 0 0 0
== END free -m ==
== BEGIN rpm -qa yum\* rpm-\* python | sort ==
python-2 . 4 . 3-44 . el5_7 . 1
rpm-build-4 . 4 . 2 . 3-22 . el5
rpm-libs-4 . 4 . 2 . 3-22 . el5
rpm-python-4 . 4 . 2 . 3-22 . el5
yum-3 . 2 . 22-37 . el5 . centos
yum-fastestmirror-1 . 1 . 16-21 . el5 . centos
yum-metadata-parser-1 . 1 . 2-3 . el5 . centos
== END rpm -qa yum\* rpm-\* python | sort ==
== BEGIN ls /etc/yum . repos . d ==
CentOS-Base . repo
CentOS-Debuginfo . repo
CentOS-Media . repo
pgdg-84-centos . repo
vz . repo
== END ls /etc/yum . repos . d ==
== BEGIN cat /etc/yum . conf ==
[main]
exclude=apache* bind-chroot courier* dovecot* exim* filesystem h t t p d* mod_ssl* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum . log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
bugtracker_url=h t t p ://bugs . centos . org/yum5bug
# Note: yum-RHN-plugin doesn't honor this .
metadata_expire=1h
installonly_limit = 5
# PUT YOUR REPOS HERE OR IN separate files named file . repo
# in /etc/yum . repos . d
== END cat /etc/yum . conf ==
== BEGIN yum repolist all ==
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'
== END yum repolist all ==
== BEGIN egrep 'include|exclude' /etc/yum . repos . d/* . repo ==
== END egrep 'include|exclude' /etc/yum . repos . d/* . repo ==
== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum . repos . d/* . repo | sort -k3n ==
== END sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum . repos . d/* . repo | sort -k3n ==
== BEGIN rpm -qa kernel\* | sort ==
kernel-headers-2 . 6 . 18-274 . 3 . 1 . el5
== END rpm -qa kernel\* | sort ==
Then I run something and PUM!
yum no run more
:'(
- 03-11-2012 #5Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,140
Well, as some of us say, if it hurts when you do that, then don't do that! Is that the PHP component? Are you absolutely sure you need it? If so, then why?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 03-11-2012 #6Just Joined!
- Join Date
- Mar 2012
- Posts
- 7
My problem start originally with:
-------------rpmlib(FileDigests) <= 4.6.0-1 is needed by pgdg-redhat91-9.1-5.noarch
-------------rpmlib(PayloadIsXz) <= 5.2-1 is needed by pgdg-redhat91-9.1-5.noarch
And yes, I need YUM to run my software.
Thanks
(My english is poor)
- 03-11-2012 #7Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,140
Well, many of us speak more languages than just English, although the Forums are limited to English as our Lingua Franca. YUM is used to install and update RedHat (and other) distribution software. So, something that messes with that is not good. 1) Don't install the offending software. 2) Report it to the repository maintainers. 3) Report the problem to the software distributors. In any case, #1 is the most important thing, at least until the underlying problem is resolved. If this happened because you installed from source code, then all I can say is "Caveat User"!
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 03-11-2012 #8Just Joined!
- Join Date
- Mar 2012
- Posts
- 7
>>>all I can say is "Caveat User"!
Ouch!
I believe you say to me:
-"Hey!, PgSQL, no problem; samplely run command 1 and command 2 and now you system run fine".
Ouch!!!....
:'(
I need repair my YUM...
This run fine from 1 year back, but now I destroy accidentally.
- 03-11-2012 #9Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,140
This happens occasionally! I've fubar'd my own system on numerous occasions, which is why the "Caveat User" comment!
This is NOT a reflection upon you in particular! One of the things that giving control to the user creates is the ability to fark up oneself! Anyway, you might be able to fix it with a lower-level rpm command to remove the offending packages, and reinstalling the correct ones. The down-side? I've run into similar issues in the past, and the solution was not always simple, or obvious, to fix. I wish I had a better magic wand to wave in your direction...
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 03-11-2012 #10Just Joined!
- Join Date
- Mar 2012
- Posts
- 7
>>> the ability to fark up oneself!
My english is poor !!!
What is you location?
Please translate to Spanish or English academic.


Reply With Quote
