- 积分
- 117977
- 威望
-
- 金钱
-
- 注册时间
- 2009-4-24
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
购入了一个123Systems,yum时出错了,错误如下:- 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 309, in user_main
- errcode = main(args)
- File "/usr/share/yum-cli/yummain.py", line 178, in main
- result, resultmsgs = base.doCommands()
- File "/usr/share/yum-cli/cli.py", line 349, in doCommands
- return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
- File "/usr/share/yum-cli/yumcommands.py", line 365, in doCommand
- return base.erasePkgs(extcmds)
- File "/usr/share/yum-cli/cli.py", line 638, in erasePkgs
- self._checkMaybeYouMeant(arg, always_output=False)
- File "/usr/share/yum-cli/cli.py", line 533, in _checkMaybeYouMeant
- matches = self.doPackageLists(patterns=[arg], ignore_case=False)
- File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1617, in doPackageLists
- avail = self.pkgSack.returnNewestByNameArch(patterns=patterns,
- File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 661, in
- pkgSack = property(fget=lambda self: self._getSacks(),
- File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 501, in _getSacks
- self.repos.populateSack(which=repos)
- File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack
- self.doSetup()
- File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup
- self.ayum.plugins.run('postreposetup')
- File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, 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
复制代码 应该是fastmirror插件的问题,修改/etc/yum.conf,将里面的plugins=1修改为plugins=0 保存就行了。 |
|