In yum, File "/usr/bin/yum", line 29, in

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.