yum update 升级报错的解决办法
程序员文章站
2023-11-04 10:25:28
yum 在启动 fastestmirror 插件时出错,是 yum 的一个 bug(http://yum.baseurl.org/ticket/70)。... 10-12-20...
今天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
复制代码
代码如下:# 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
推荐阅读
-
SQL Server2005打开数据表中的XML内容时报错的解决办法
-
javascript报错SyntaxError:malformedhexadecimalcharacterescapesequence的解决办法
-
foxmail7.2怎么导入7.0的邮件备份 升级后旧邮件丢失了的解决办法
-
django修改表数据结构后报错的解决办法
-
yum update 升级报错的解决办法
-
Win10 Mobile预览版14955升级更新错误代码80242006的解决办法
-
ORACLE运行报错“ORA-01081:无法启动已在运行的ORACLE-请首先关闭它”的解决办法
-
Linux中复制目录报错cp:omitting directory的解决办法
-
python升级带来的yum异常(解决错误File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:)
-
linux下oracle报错,提示ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务的解决办法