Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem of yum update upgrade error report

Shulou Source: shulou.com Published: 2022-06-01 12:25:49 10月31日 Update

This article introduces the relevant knowledge of "how to solve the yum update upgrade error report". In the operation of the actual case, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Today, deepvps encountered a problem when upgrading its system on a CentOS VPS. Yum reported an error:

The code is as follows:

# yum update

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

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 104, in main

Result, resultmsgs = base.doCommands ()

File "/ usr/share/yum-cli/cli.py", line 339, in doCommands

Self._getTs (needTsRemove)

File "/ usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _ getTs

Self._getTsInfo (remove_only)

File "/ usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _ getTsInfo

PkgSack = self.pkgSack

File "/ usr/lib/python2.4/site-packages/yum/__init__.py", line 591, in

PkgSack = property (fget=lambda self: self._getSacks ()

File "/ usr/lib/python2.4/site-packages/yum/__init__.py", line 434, in _ getSacks

Self.repos.populateSack (which=repos)

File "/ usr/lib/python2.4/site-packages/yum/repos.py", line 223, in populateSack

Self.doSetup ()

File "/ usr/lib/python2.4/site-packages/yum/repos.py", line 71, in doSetup

Self.ayum.plugins.run ('postreposetup')

File "/ usr/lib/python2.4/site-packages/yum/plugins.py", line 176, in run

Func (conduitcls (self, self.base, conf, * * kwargs)

File "/ usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook

All_urls = FastestMirror (all_urls). Get_mirrorlist ()

File "/ usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist

Self._poll_mirrors ()

File "/ usr/lib/yum-plugins/fastestmirror.py", line 376, in _ poll_mirrors

PollThread.start ()

File "/ usr/lib/python2.4/threading.py", line 416, in start

_ start_new_thread (self.__bootstrap, ())

Thread.error: can't start new thread

Yum encountered an error while starting the fastestmirror plug-in, which is a bug (http://yum.baseurl.org/ticket/70) of yum. If you stop mysqld,yum, everything works fine. The temporary workaround is to disable the launch of the fastestmirror plug-in when yum update.

The code is as follows:

Yum-disableplugin=fastestmirror update

This is the end of the content of "how to solve yum update upgrade errors". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Upgrades code content plug-ins more knowledge practicality achievement and then methods dilemmas realities situations articles cases systems editing websites industries processes Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Huawei MySQL Shulou Technology MariaDB