Find the answer to your Linux question:
Results 1 to 9 of 9
Howdy, I haven't had all that much experience with linux. I used to mess around with it a lot but for a while i didnt have access to a linux ...
  1. #1
    Just Joined! VanHalenMan's Avatar
    Join Date
    Aug 2008
    Posts
    49

    Yum Error

    Howdy, I haven't had all that much experience with linux. I used to mess around with it a lot but for a while i didnt have access to a linux computer. But now I do. I tried to install Yum. It is possible that I already had Yum installed (FC11) so i might have screwed somethin up when i tried to overwrite what was already there. anyway this is what happends when i do a simple yum info firefox

    Code:
    Loaded plugins: refresh-packagekit
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "yummain.py", line 254, in user_main
        errcode = main(args)
      File "yummain.py", line 88, in main
        base.getOptionsConfig(args)
      File "cli.py", line 203, in getOptionsConfig
        self.plugins.run('args', args=args)
      File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 170, in run
        raise ValueError('unknown slot name "%s"' % slotname)
    ValueError: unknown slot name "args"
    any ideas?
    thanks

  2. #2
    Just Joined!
    Join Date
    Dec 2009
    Location
    India
    Posts
    4
    Hello,

    Just wanna make sure that did you enable rpmfusion repositories in your F11 machine?

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute this
    Code:
    su -
    rm -f /var/lib/rpm/__db*          <--- two under_scores before 'db*'
    db_verify /var/lib/rpm/Packages
    rpm --rebuilddb
    In case it doesn't work, execute this
    Code:
    su -c yum repolist
    Post output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Dec 2009
    Location
    India
    Posts
    4
    devils casper, why would he need to remove those files? I mean I've those __db* files in my machine and everything works fine.

    PS-Not offending. Want to know about it.

  5. #5
    Linux Newbie
    Join Date
    Oct 2008
    Posts
    140
    Fedora 11 came with yum pre-installed. But trying to install it anyway should just give you an error message similar to this one from my machine, "Setting up Install Process
    Package yum-3.2.24-2.fc10.noarch already installed and latest version
    Nothing to do
    ".
    It can't hurt a thing. You might want to uninstall yum and start over with a fresh installation of it.
    Do:
    [root@Yourbox ~]$ yum erase yum
    and then
    [root@Yourbox ~]$rpm -ivh hxxp://mirror.cpsc.ucalgary.ca/mirror/fedora/linux/releases/11/Fedora/x86_64/os/Packages/yum-3.2.22-4.fc11.noarch.rpm
    I hope that helps.

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    devils casper, why would he need to remove those files? I mean I've those __db* files in my machine and everything works fine.
    Its a rpm database and if it gets corrupted, yum doesn't work properly. db_verify command regenrate that database from scratch.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined! VanHalenMan's Avatar
    Join Date
    Aug 2008
    Posts
    49
    Quote Originally Posted by devils casper View Post
    Execute this
    Code:
    su -
    rm -f /var/lib/rpm/__db*          <--- two under_scores before 'db*'
    db_verify /var/lib/rpm/Packages
    rpm --rebuilddb
    In case it doesn't work, execute this
    Code:
    su -c yum repolist
    Post output here.
    no immediate errors come up but when i type the same thing (yum info firefox) i get this error
    Code:
    Loaded plugins: refresh-packagekit
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "yummain.py", line 254, in user_main
        errcode = main(args)
      File "yummain.py", line 88, in main
        base.getOptionsConfig(args)
      File "cli.py", line 203, in getOptionsConfig
        self.plugins.run('args', args=args)
      File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 170, in run
        raise ValueError('unknown slot name "%s"' % slotname)
    ValueError: unknown slot name "args"
    The bottom one gives me the same error.
    I also tried uninstalling like kurtdriver said and it says command erase not found. So how would i uninstall it?

  8. #8
    Linux Newbie
    Join Date
    Oct 2008
    Posts
    140
    rpm -e yum
    This would do it, maybe yum can't erase itself.

  9. #9
    Just Joined! VanHalenMan's Avatar
    Join Date
    Aug 2008
    Posts
    49
    Code:
    error: Failed dependencies:
    	yum >= 3.2.22 is needed by (installed) createrepo-0.9.7-6.fc11.noarch
    	yum >= 2.9.5 is needed by (installed) system-config-language-1.3.2-5.fc11.noarch
    	yum is needed by (installed) anaconda-yum-plugins-1:1.0-4.fc11.noarch
    	yum >= 2.4 is needed by (installed) mock-0.9.16-1.fc11.noarch
    	yum is needed by (installed) bodhi-client-0.5.19-1.fc11.noarch
    	yum >= 3.2.22 is needed by (installed) yum-utils-1.1.21-2.fc11.noarch
    	yum >= 3.2.19 is needed by (installed) PackageKit-yum-0.4.6-8.fc11.i586
    	yum >= 3.0 is needed by (installed) PackageKit-yum-plugin-0.4.6-8.fc11.i586
    	yum >= 3.2.19 is needed by (installed) preupgrade-1.0.1-2.fc11.noarch
    hmmm

Posting Permissions

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