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

郑重声明:本文由网友发布,不代表盛行IT的观点,版权归原作者所有,仅为传播更多信息之目的,如有侵权请联系,我们将第一时间修改或删除,多谢。

相关文章阅读

  • C语言面试笔试题,C开发面试题
  • python的seaborn用于可视化分析,python seaborn 散点图矩阵
  • Java的访问权限,Java包权限
  • hd6990跑分,hd6970跑分
  • win10系统会自动更新win11吗,windows11可以更新吗
  • cad图粘贴到wps,如果将cad的图复制到wps
  • 深度技术win7安装 硬盘第一分区安装不了,深度系统安装win7
  • win7怎么升级windows10系统,win7怎么升级win10专业版
  • 黄台APP免费入口网站-一款资源佳作数量很为可观的播放器
  • GUITAR RIG 6 PROv6.0.3破解版一个多效果机架和放大器模拟器,用于快速,直接地创建和试验音频
  • 名义变量度量变量有序变量,名义变量和实际变量不一致,名义变量度量变量有序变量,名义变量和实际变量不一样
  • 一句话木马是什么,一句话图片木马,各种一句话木马大全
  • excel小数排序怎么排名次,excel排序怎么用公式排名次由小到大
  • geforce now注册,geforce now收费
  • css文字换行 自动,html如何让文字自动换行
  • 留言与评论(共有 条评论)
       
    验证码: