Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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.
  1. #1
    Just 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

  2. #2
    Just 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 []#

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,509
    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!

  4. #4
    Just Joined!
    Join Date
    Mar 2012
    Posts
    7
    Thanks .

    This is my sistem:

    PHP Code:
    == BEGIN uname -rmi ==
    18-274 el5 028stab093 2 i686 i386
    == END   uname -rmi ==

    == 
    BEGIN rpm -qa \*-release\* ==
    rpmforge-release-2-el4 rf
    centos
    -release-5-el5 centos
    centos
    -release-notes-7-0
    == END   rpm -qa \*-release\* ==

    == 
    BEGIN cat /etc/redhat-release ==
    CentOS release 5 (Final)
    == 
    END   cat /etc/redhat-release ==

    == 
    BEGIN getenforce ==
    Disabled
    == END   getenforce ==

    == 
    BEGIN free -==
                 
    total       used       free     shared    buffers     cached
    Mem
    :          1024        740        284          0          0          0
    -/+ buffers/cache:        740        284
    Swap
    :            0          0          0
    == END   free -==

    == 
    BEGIN rpm -qa yum\* rpm-\* python sort ==
    python-3-44 el5_7 1
    rpm
    -build-3-22 el5
    rpm
    -libs-3-22 el5
    rpm
    -python-3-22 el5
    yum
    -22-37 el5 centos
    yum
    -fastestmirror-16-21 el5 centos
    yum
    -metadata-parser-2-el5 centos
    == END   rpm -qa yum\* rpm-\* python sort ==

    == 
    BEGIN ls /etc/yum repos ==
    CentOS-Base repo
    CentOS
    -Debuginfo repo
    CentOS
    -Media repo
    pgdg
    -84-centos repo
    vz 
    repo
    == END   ls /etc/yum repos ==

    == 
    BEGIN cat /etc/yum conf ==
    [
    main]
    exclude=apachebind-chroot courierdovecoteximfilesystem h t t p dmod_sslmysqlnsdperlphpproftpdpure-ftpdrubyspamassassinsquirrelmail*
    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 4in ?
        
    import yum
      File 
    "/usr/lib/python2 . 4/site-packages/yum/__init__ . py"line 50in ?
        
    import comps
      File 
    "/usr/lib/python2 . 4/site-packages/yum/comps . py"line 23in ?
        
    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 == 
    I try install ElementTree of Python .

    Then I run something and PUM!
    yum no run more

    :'(

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,509
    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!

  6. #6
    Just 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)

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,509
    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!

  8. #8
    Just 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.

  9. #9
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,509
    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!

  10. #10
    Just 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.


Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •