Centos yum library update

Source: Internet
Author: User
Tags centos vps

Centos yum library update

When upgrading the system on CentOS VPS today, yum reports the following error:
# Yum update

Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileTraceback (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
 

An error occurred when yum started the fastestmirror plug-in, which is a bug (http://yum.baseurl.org/ticket/70) of yum ). If mysqld is stopped, yum works normally. The temporary solution is to disable the fastestmirror plug-in during yum update.

yum --disableplugin=fastestmirror update

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.