Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I was playing with my yum and python. and that has left me nowhere. I want to clean install yum and python again. I have reinstalled python. Now I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5

    Problem with YUM and Python


    Hi,
    I was playing with my yum and python. and that has left me nowhere.
    I want to clean install yum and python again.

    I have reinstalled python. Now I want to install YUM.The links are from centos
    I have followed these steps.


    $ rpm -Uvh yum-3.2.22-26.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
    Preparing... ########################################### [100%]
    1:yum-metadata-parser ########################################### [ 33%]
    2:yum-fastestmirror ########################################### [ 67%]
    3:yum ########################################### [100%]
    error: unpacking of archive failed on file /usr/share/yum-cli/yumcommands.pyo;4c18976f: cpio: read failed - Bad file descriptor


    $ yum
    Traceback (most recent call last):
    File "/usr/bin/yum", line 28, in ?
    import yummain
    File "/usr/share/yum-cli/yummain.py", line 34, in ?
    from utils import suppress_keyboard_interrupt_message, show_lock_owner
    ImportError: cannot import name suppress_keyboard_interrupt_message


    $ rpm -q *yum*
    package yum-3.2.22-26.el5.centos.noarch.rpm is not installed
    package yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm is not installed
    package yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm is not installed

    What are these errors and how to rectify them.?

    Thanks,

    Nikunj
    Bangalore, India

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    Is yum working at all? Are you able to install any package using yum?
    Try to clean cache first.
    Code:
    yum clean all
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5
    Hi,
    yum is not at all working.
    $ yum clean all
    Traceback (most recent call last):
    File "/usr/bin/yum", line 28, in ?
    import yummain
    File "/usr/share/yum-cli/yummain.py", line 34, in ?
    from utils import suppress_keyboard_interrupt_message, show_lock_owner
    ImportError: cannot import name suppress_keyboard_interrupt_mes

    Kindly Kindly help..!!

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    yum depends on python, if you mess with python, most likely you will break yum unless proper precautions are taken, you may have to do a reinstall

Posting Permissions

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