CentOS中文网

解决yum 出现 File “/usr/bin/yum”, line 29, in

CentOS中文网 https://www.centos.net.cn 2013-10-30 00:34 出处:网络 编辑:@iCMS
错误如下: Python 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 [root@chenyi/]#yuminstalppp

错误如下:

Python

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

[root@chenyi/]# yum instal ppp

Loaded plugins:fastestmirror

No such command:instal.Please use/usr/bin/yum--help

[root@chenyi/]# yum instal pptpd

[root@chenyi/]# yum install pptpd

Loaded plugins:fastestmirror

Loading mirror speeds fromcached hostfile

Traceback(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_main

errcode=main(args)

File"/usr/share/yum-cli/yummain.py",line129,inmain

result,resultmsgs=base.doCommands()

File"/usr/share/yum-cli/cli.py",line434,indoCommands

self._getTs(needTsRemove)

File"/usr/lib/python2.6/site-packages/yum/depsolve.py",line99,in_getTs

self._getTsInfo(remove_only)

File"/usr/lib/python2.6/site-packages/yum/depsolve.py",line110,in_getTsInfo

pkgSack=self.pkgSack

File"/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_getSacks

self.repos.populateSack(which=repos)

File"/usr/lib/python2.6/site-packages/yum/repos.py",line265,inpopulateSack

self.doSetup()

File"/usr/lib/python2.6/site-packages/yum/repos.py",line92,indoSetup

self.ayum.plugins.run('postreposetup')

File"/usr/lib/python2.6/site-packages/yum/plugins.py",line184,inrun

func(conduitcls(self,self.base,conf,**kwargs))

File"/usr/lib/yum-plugins/fastestmirror.py",line202,inpostreposetup_hook

all_urls=FastestMirror(all_urls).get_mirrorlist()

File"/usr/lib/yum-plugins/fastestmirror.py",line369,inget_mirrorlist

self._poll_mirrors()

File"/usr/lib/yum-plugins/fastestmirror.py",line413,in_poll_mirrors

pollThread.start()

File"/usr/lib/python2.6/threading.py",line474,instart

_start_new_thread(self.__bootstrap,())

thread.error:can'tstart newthread

解决:

Python

1

sed-i"s/plugins=1/plugins=0/"/etc/yum.conf

还差一条命令:

Python

1

sed-i"s/enabled=1/enabled=0/"/etc/yum/pluginconf.d/fastestmirror.conf

还差一条...

Python

1

yum clean all


0

精彩评论

暂无评论...
验证码 换一张
取 消