PDA

View Full Version : yum crashing on F9



GreyWizzard
21st September 2008, 05:51 AM
not sure what happened, but as of today yum is crashing on my F9 i386 system.

Nothing really special about the box or the install. It is on my daughter's Presario 8000Z and it as all pretty much standard.

I pulled up a command prompt yesterday, pulled off a complete upgrade (yum -y update) and now today I keep getting the error:


yum update
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 84, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig
enabled_plugins=self.optparser._splitArg(opts.enab leplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 189, in _getConfig
startupconf.pluginconfpath,disabled_plugins,enable d_plugins)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 355, in doPluginSetup
plugin_types, confpath, disabled_plugins, enabled_plugins)
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 152, in __init__
self._importplugins(types)
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 195, in _importplugins
self._loadplugin(modulefile, types)
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 251, in _loadplugin
module = imp.load_module(modname, fp, pathname, description)
File "/usr/lib/yum-plugins/filter-data.py", line 111
('committers', 'committer')]
^
SyntaxError: invalid syntax

Can't back up, can't go forward..... What can I do?

My daughter is about to disown me :eek:

Nokia
21st September 2008, 06:50 AM
su
yum remove yum-filter-data --noplugins
That's all.

GreyWizzard
21st September 2008, 11:42 AM
Dude, you are amazing!

Got it working again, but now I want to learn as well.

What did you see in that output that told you that was the problem? How can I use this to assist me in the future as well as this time?

Nokia
21st September 2008, 12:18 PM
not sure what happened, but as of today yum is crashing on my F9 i386 system.

Nothing really special about the box or the install. It is on my daughter's Presario 8000Z and it as all pretty much standard.

I pulled up a command prompt yesterday, pulled off a complete upgrade (yum -y update) and now today I keep getting the error:


yum update
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 84, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig
enabled_plugins=self.optparser._splitArg(opts.enab leplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 189, in _getConfig
startupconf.pluginconfpath,disabled_plugins,enable d_plugins)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 355, in doPluginSetup
plugin_types, confpath, disabled_plugins, enabled_plugins)
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 152, in __init__
self._importplugins(types)
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 195, in _importplugins
self._loadplugin(modulefile, types)
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 251, in _loadplugin
module = imp.load_module(modname, fp, pathname, description)
File "/usr/lib/yum-plugins/filter-data.py", line 111
('committers', 'committer')]
^
SyntaxError: invalid syntax



That's the error. See
man yum. You'll find two relevant options to consider:
--disableplugin=plugin
Run with one or more plugins disabled, the argument is a comma seperated list of wildcards to match against plugin names. which for some strange reason doesn't work, and --noplugins which helps in removing the buggy file. It's a quite old bug which is about to be resolved in a matter of hours/days. See here: https://admin.fedoraproject.org/updates/yum-utils-1.1.17-1.fc9. After this bugfix release, you can safely reinstall the plugin. The error pointed in line 111 is a missing ; in the syntax.