Description of problem: After doing an "upgrade" from fc5 -> fc6 via the dvd I logged in and tried to yum update and it failed badly. Version-Release number of selected component (if applicable): rpm -q yum yum-3.0-6 How reproducible: every time I try to use yum I get the error Steps to Reproduce: 1. type yum update 2. yum install <insert package you wish to install> 3. yum <anything> Actual results: File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 102, in main result, resultmsgs = do() File "/usr/share/yum-cli/cli.py", line 359, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand return base.updatePkgs(extcmds) File "/usr/share/yum-cli/cli.py", line 628, in updatePkgs self.doRepoSetup() File "/usr/share/yum-cli/cli.py", line 102, in doRepoSetup yum.YumBase.doRepoSetup(self, thisrepo=thisrepo) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 306, in doRepoSetup self.plugins.run('postreposetup') File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 153, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/fastestmirror.py", line 77, in postreposetup_hook repo.set('urls', repomirrors[str(repo)]) AttributeError: 'YumRepository' object has no attribute 'set' Expected results: Id like it to work :) Additional info: Im on irc as errr if you have any reason to have a live chat about this with me.
OK I have the problem fixed. rpm -e yum [1] error: Failed dependencies: yum >= 2.4.1 is needed by (installed) yum-fastestmirror-0.6-3.fc5.noarch yum >= 2.5.1 is needed by (installed) yum-utils-0.6-3.fc5.noarch yum >= 2.3 is needed by (installed) repoview-0.5.2-1.fc5.noarch yum >= 2.2.1 is needed by (installed) mock-0.6.5-1.fc5.i386 yum >= 2.9.5 is needed by (installed) pirut-1.2.5-1.noarch rpm -Uvh yum-3.0-6.noarch.rpm [1] Preparing... ########################################### [100%] package yum-3.0-6 is already installed rpm -e pirut [1] rpm -e mock warning: /etc/mock/fedora-devel-i386-core.cfg saved as /etc/mock/fedora-devel-i3 86-core.cfg.rpmsave warning: /etc/mock/fedora-5-i386-core.cfg saved as /etc/mock/fedora-5-i386-core. cfg.rpmsave rpm -e repoview rpm -e yum-utils rpm -e yum-fastestmirror rpm -ev yum rpm -q yum package yum is not installed rpm -ivh yum-3.0-6.noarch.rpm [1] Preparing... ########################################### [100%] 1:yum ########################################### [100%] yum update And now it works like a champ. No idea why it took this to get it working
You need to update the plugins in addition to yum itself; there have been major API overhauls internally to yum.
So if this isnt a bug with yum where is the bug, surely you must agree that there is some kind of bug if this no longer works after you do an upgrade from fc5 to fc6. Something has failed to update the packages that need updating. How about this gets moved to the right place instead of closed?