Find the answer to your Linux question:
Results 1 to 7 of 7
Hello i have centos 5.3 and when using yum command have this error Traceback (most recent call last): File "/usr/bin/yum", line 28, in ? import yummain File "/usr/share/yum-cli/yummain.py", line 31, ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    11

    Post [SOLVED] yum command error

    Hello
    i have centos 5.3 and when using yum command have this error

    Traceback (most recent call last):
    File "/usr/bin/yum", line 28, in ?
    import yummain
    File "/usr/share/yum-cli/yummain.py", line 31, in ?
    from yum.i18n import to_unicode
    ImportError: cannot import name to_unicode

    How can i remove yum?
    or how i can solve this error


    thanks

  2. #2
    Linux Newbie grishi_111's Avatar
    Join Date
    Oct 2007
    Location
    Jafarpur Sitharra(U.P.)/New Delhi, India
    Posts
    171
    i am not sure about your problem.
    but you can remove yum by
    you can find yum version installed by
    Code:
    rpm -qa|grep yum
    then remove yum by
    Code:
    rpm -e yum.XXXXX.rpm
    ofcourse you may need to install it again
    do it in this way
    download yum-XXXXX.noarch.rpm
    Code:
    rpm -Uvh yum-XXXXX.noarch.rpm
    yum clean all
    yum check-update
    let us know how it goes.
    Sorry, it was unintentional.
    You should have told me at least once and i could have fix it.
    thanks for reminding me.

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    11

    Exclamation install yum

    i removed yum

    but command rpm -Uvh yum-XXXXX.noarch.rpm can't install it

    how can i install yum?


    thanks

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    yum-XXXXX.noarch.rpm is being used here as a generic placeholder. You need to download the appropriate package for CentOS 5.3 and use that package name instead.

    You can find the correct yum package here.
    RPM Search

    Or if you can tell me whether you have a 64 bit or 32 bit version of CentOS, I can point you to the right link.

  5. #5
    Linux Newbie grishi_111's Avatar
    Join Date
    Oct 2007
    Location
    Jafarpur Sitharra(U.P.)/New Delhi, India
    Posts
    171
    Quote Originally Posted by altarek View Post
    i removed yum

    but command rpm -Uvh yum-XXXXX.noarch.rpm can't install it

    how can i install yum?


    thanks
    i am sorry.
    as reed9 said i used yum-XXXXX.noarch.rpm just for illustration because i didn't know the versions available for you.
    you need to find and download available rpm.
    thanks reed9 for correcting me.
    Sorry, it was unintentional.
    You should have told me at least once and i could have fix it.
    thanks for reminding me.

  6. #6
    Just Joined!
    Join Date
    Oct 2009
    Posts
    11

    Post

    Thanks i install yum but when using to install any thing give me this message


    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * addons: centos-distro.cavecreek.net
    * base: mirror.raystedman.net
    * extras: styx.biochem.wfubmc.edu
    * update: mirror.5ninesolutions.com
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Nothing to do

  7. #7
    Linux Newbie grishi_111's Avatar
    Join Date
    Oct 2007
    Location
    Jafarpur Sitharra(U.P.)/New Delhi, India
    Posts
    171
    yum seems to be installed correctly and working.
    probably you are not using correct package name.
    you can have gui extension to yum.
    use this command to install yumex.
    Code:
    yum install yumex
    you can then found yumex in System Tools.
    there you can choose packages you want to install.
    if this doesn't work please wait someone else to answer.
    it seems some problem with repo files.
    Sorry, it was unintentional.
    You should have told me at least once and i could have fix it.
    thanks for reminding me.

Posting Permissions

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