Re: Yum FC6 error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tony Nelson wrote:
At 3:56 PM +1000 11/11/06, david walcroft wrote:
Tony Nelson wrote:
At 11:12 AM +1000 11/11/06, david walcroft wrote:
I upgraded from FC5 > FC6 with very few problems,I have two which I
don't know how to fix:-

[david@reddwarf ~]$ sudo yum -y update
Loading "installonlyn" plugin
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 85, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 199, in getOptionsConfig
    errorlevel=opts.errorlevel)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 123, in
doConfigSetup
    startupconf.pluginconfpath)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 252, in
doPluginSetup
    plugin_types, confpath)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 129, in
__init__
    self._importplugins(types)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 170, in
_importplugins
    self._loadplugin(modulefile, types)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 186, in
_loadplugin
    module = imp.load_module(modname, fp, pathname, description)
  File "/usr/lib/yum-plugins/stablemirror.py", line 140, in ?
    from repomd import repoMDObject, mdErrors
ImportError: No module named repomd
That's my stablemirror plugin, not updated for FC6, probably not really
needed either, what with the changes to the mirrorlist.  Edit its
/etc/yum/pluginconf.d/stablemirror.conf file to disable it.


And Yumex will not start,how do I debug as to why it's not.
Might the the same issue.
Ran vim on the above,Yum ran part of the way then came up with this:-

Not sure what you mean by "ran vim", but apparantly stablemirror is not
loading anymore.


Running "postreposetup" handler for "fastestmirror" plugin
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
  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'

Now it says that the fastestmirror plugin is not working.  It is part of
yum-fastestmirror, part of yum.  Possibly it wasn't upgraded, or has some
other problem.  It isn't necessary.  You can disable it the same way.

Yes I meant to say I used vim to disable stablemirror.py
Now yum comes up with more errors and diabled plugins

[david@reddwarf ~]$ sudo yum -y update
Loading "installonlyn" plugin
"stablemirror" plugin is disabled
"fastestmirror" plugin is disabled
"gpgcheck" plugin is disabled
Running "config" handler for "installonlyn" plugin
Yum Version: 3.0

Excluding Packages in global exclude list
Traceback (most recent call last):
  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 107, in doRepoSetup
    self.doSackSetup(thisrepo=thisrepo)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 333, in doSackSetup
    self.excludePackages()
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 487, in excludePackages
    exactmatch, matched, unmatched = \
File "/usr/lib/python2.4/site-packages/yum/packages.py", line 96, in parsePackages
    if regex.match(item):
TypeError: expected string or buffer

This seems to be getting worse instead of better and should 'gpgcheck' be disabled.


    Thanks   david


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux