码迷,mamicode.com
首页 > 其他好文 > 详细

centos怎么解决yum 出现 File “/usr/bin/yum”, line 29

时间:2015-05-29 11:37:49      阅读:1909      评论:0      收藏:0      [点我收藏+]

标签:

来自:http://www.demopu.com/?p=599

错误如下:Python123456789101112131415161718192021222324252627282930313233343536373839[root@chenyi/]# yum instal pppLoaded plugins:fastestmirrorNo such command:instal.Please use/usr/bin/yum–help[root@chenyi/]# yum instal pptpd[root@chenyi/]# yum install pptpdLoaded plugins:fastestmirrorLoading mirror speeds fromcached hostfileTraceback(most recent call last):File"/usr/bin/yum",line29,in<module>yummain.user_main(sys.argv[1:],exit_code=True)File"/usr/share/yum-cli/yummain.py",line276,inuser_mainerrcode=main(args)File"/usr/share/yum-cli/yummain.py",line129,inmainresult,resultmsgs=base.doCommands()File"/usr/share/yum-cli/cli.py",line434,indoCommandsself._getTs(needTsRemove)File"/usr/lib/python2.6/site-packages/yum/depsolve.py",line99,in_getTsself._getTsInfo(remove_only)File"/usr/lib/python2.6/site-packages/yum/depsolve.py",line110,in_getTsInfopkgSack=self.pkgSackFile"/usr/lib/python2.6/site-packages/yum/__init__.py",line883,in<lambda>pkgSack=property(fget=lambdaself:self._getSacks(),File"/usr/lib/python2.6/site-packages/yum/__init__.py",line668,in_getSacksself.repos.populateSack(which=repos)File"/usr/lib/python2.6/site-packages/yum/repos.py",line265,inpopulateSackself.doSetup()File"/usr/lib/python2.6/site-packages/yum/repos.py",line92,indoSetupself.ayum.plugins.run(‘postreposetup‘)File"/usr/lib/python2.6/site-packages/yum/plugins.py",line184,inrunfunc(conduitcls(self,self.base,conf,**kwargs))File"/usr/lib/yum-plugins/fastestmirror.py",line202,inpostreposetup_hookall_urls=FastestMirror(all_urls).get_mirrorlist()File"/usr/lib/yum-plugins/fastestmirror.py",line369,inget_mirrorlistself._poll_mirrors()File"/usr/lib/yum-plugins/fastestmirror.py",line413,in_poll_mirrorspollThread.start()File"/usr/lib/python2.6/threading.py",line474,instart_start_new_thread(self.__bootstrap,())thread.error:can‘tstart newthread解决:Python1sed-i"s/plugins=1/plugins=0/"/etc/yum.conf还差一条命令:Python1sed-i"s/enabled=1/enabled=0/"/etc/yum/pluginconf.d/fastestmirror.conf还差一条…Python1yum clean all

转载请注明:Demopu.com » centos系统故障-解决yum 出现 File “/usr/bin/yum”, line 29, in

centos怎么解决yum 出现 File “/usr/bin/yum”, line 29

标签:

原文地址:http://www.cnblogs.com/demopu/p/4537839.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!