VPS侦探论坛

 找回密码
 注册
查看: 7700|回复: 0

[总结] 123Systems 无法yum解决方法

[复制链接]
发表于 2011-3-21 13:16:27 | 显示全部楼层 |阅读模式

购入了一个123Systems,yum时出错了,错误如下:
  1. Loading mirror speeds from cached hostfile
  2. Traceback (most recent call last):
  3.   File "/usr/bin/yum", line 29, in ?
  4.     yummain.user_main(sys.argv[1:], exit_code=True)
  5.   File "/usr/share/yum-cli/yummain.py", line 309, in user_main
  6.     errcode = main(args)
  7.   File "/usr/share/yum-cli/yummain.py", line 178, in main
  8.     result, resultmsgs = base.doCommands()
  9.   File "/usr/share/yum-cli/cli.py", line 349, in doCommands
  10.     return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  11.   File "/usr/share/yum-cli/yumcommands.py", line 365, in doCommand
  12.     return base.erasePkgs(extcmds)
  13.   File "/usr/share/yum-cli/cli.py", line 638, in erasePkgs
  14.     self._checkMaybeYouMeant(arg, always_output=False)
  15.   File "/usr/share/yum-cli/cli.py", line 533, in _checkMaybeYouMeant
  16.     matches = self.doPackageLists(patterns=[arg], ignore_case=False)
  17.   File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1617, in doPackageLists
  18.     avail = self.pkgSack.returnNewestByNameArch(patterns=patterns,
  19.   File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 661, in
  20.     pkgSack = property(fget=lambda self: self._getSacks(),
  21.   File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 501, in _getSacks
  22.     self.repos.populateSack(which=repos)
  23.   File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack
  24.     self.doSetup()
  25.   File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup
  26.     self.ayum.plugins.run('postreposetup')
  27.   File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
  28.     func(conduitcls(self, self.base, conf, **kwargs))
  29.   File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
  30.     all_urls = FastestMirror(all_urls).get_mirrorlist()
  31.   File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
  32.     self._poll_mirrors()
  33.   File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
  34.     pollThread.start()
  35.   File "/usr/lib/python2.4/threading.py", line 416, in start
  36.     _start_new_thread(self.__bootstrap, ())
  37. thread.error: can't start new thread
复制代码
应该是fastmirror插件的问题,修改/etc/yum.conf,将里面的plugins=1修改为plugins=0 保存就行了。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-25 01:29 , Processed in 0.024736 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表