In fedora11 today, use the following statement to update yum
Sudo Yum install Yum *
Yum cannot be used normally after the update is found
The error message is as follows:
File "/usr/lib/python2.6/Site-packages/Yum/Init
. Py ", line 649, in <Lambda>
Conf = property (fget = Lambda self: Self. _ getconfig (),
File "/usr/lib/python2.6/Site-packages/Yum/Init
. Py ", line 237, in _ getconfig
Startupconf. pluginconfpath, disabled_plugins, enabled_plugins)
File "/usr/lib/python2.6/Site-packages/Yum/Init
. Py ", line 408, in dopluginsetup
Plugin_types, confpath, disabled_plugins, enabled_plugins)
File "/usr/lib/python2.6/Site-packages/Yum/plugins. py", line 162, inInit
Self. Run ('config ')
File "/usr/lib/python2.6/Site-packages/Yum/plugins. py", Line 179, in run
Func (conduitcls (self, self. Base, Conf, ** kwargs ))
File "/usr/lib/Yum-plugins/tmprepo. py", Line 179, in config_hook
Parser.Values
. Tmp_repos = []
In fact, these errors are caused by bugs in the tmprepo plug-in. You only need to uninstall this plug-in. The command is as follows:
Yum remove -- disableplugin = tmprepo Yum-plugin-tmprepo