Fedora9でyumが動作しない
Fedora9でいつのまにかyumが動作しない。
yum起動時に以下のエラー
-----------
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in
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.enableplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 189, in _getConfig
startupconf.pluginconfpath,disabled_plugins,enabled_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
-----------
/etc/yum.confの修正
For whoever wants the solution. Just edit the file "/etc/yum.conf" and set plugins to 0.
---------------
#plugins=1
↓
plugins=0
---------------
これでyumが動作するようになります。
yum起動時に以下のエラー
-----------
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in
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.enableplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 189, in _getConfig
startupconf.pluginconfpath,disabled_plugins,enabled_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
-----------
/etc/yum.confの修正
For whoever wants the solution. Just edit the file "/etc/yum.conf" and set plugins to 0.
---------------
#plugins=1
↓
plugins=0
---------------
これでyumが動作するようになります。
コメント