The error is as follows:
Python 123456789101112131415161718192021222324252627282930313233343536373839 [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: fastestreceivloading 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 (conducting Cls (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_policlistself. _ poll_mirrors () File "/usr/lib/yum-plugins/fastestmirror. py ", line413, in_poll_?spollthread.start () File"/usr/lib/python2.6/threading. py ", line474, instart_start_new_thread (self. _ bootstrap, () thread. error: can 'tstart newthread
Solution:
Python 1sed-i "s/plugins = 1/plugins = 0/"/etc/yum. conf
There is another command:
Python 1sed-i "s/enabled = 1/enabled = 0/"/etc/yum/pluginconf. d/fastestmirror. conf
Another difference is...
Python 1yum clean all