来自:http://www.demopu.com/?p=599
错误如下:Python123456789101112131415161718192021222324252627282930313233343536373839[[email protected]/]# yum instal pppLoaded plugins:fastestmirrorNo such command:instal.Please use/usr/bin/yum–help[[email protected]/]# yum instal pptpd[[email protected]/]# 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