• 企业400电话
  • 微网小程序
  • AI电话机器人
  • 电商代运营
  • 全 部 栏 目

    企业400电话 网络优化推广 AI电话机器人 呼叫中心 网站建设 商标✡知产 微网小程序 电商运营 彩铃•短信 增值拓展业务
    yum update 升级报错的解决办法
    今天deepvps在一个 CentOS VPS 上升级系统时遇到一个问题,yum 报错:

    复制代码
    代码如下:

    # 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 在启动 fastestmirror 插件时出错,是 yum 的一个 bug(http://yum.baseurl.org/ticket/70)。如果停掉 mysqld,yum 一切工作正常。临时解决办法是 yum update 时禁止启动 fastestmirror 插件。

    复制代码
    代码如下:

    yum –disableplugin=fastestmirror update
    上一篇:LINUX防火墙的打开与关闭方法
    下一篇:用root安全登录VPS 的方法
  • 相关文章
  • 

    © 2016-2020 巨人网络通讯 版权所有

    《增值电信业务经营许可证》 苏ICP备15040257号-8

    yum update 升级报错的解决办法 yum,update,升级,报,错的,解决,