Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of yum update upgrade error report

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report