Yum cannot run properly due to upgrading yum.

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.