yum com problemas

1. yum com problemas

George
George511

(usa Debian)

Enviado em 29/08/2011 - 20:46h

estou com problema no meu centos, com o yum, quando tento instalar algo, aparece isso:

[root@server /]# yum install libssh2-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 104, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 339, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 591, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 434, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 223, in populateSack
self.doSetup()
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 71, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 176, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_mirrorlist()
File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
self._poll_mirrors()
File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
pollThread.start()
File "/usr/lib/python2.4/threading.py", line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread

[root@server /]#

alguem poderia mim dizer como corrigir esse erro?


  


2. Re: yum com problemas

Perfil removido
removido

(usa Nenhuma)

Enviado em 29/08/2011 - 20:52h

Torne-se 'root':
# yum clean all
# yum makecache
Depois atualize: # yum upgrade

Retorne pra sabermos se deu certo.


3. Re: yum com problemas

Andre (pinduvoz)
pinduvoz

(usa Debian)

Enviado em 29/08/2011 - 20:55h

Tente remover o plugin fastestmirror, pois é ele que está causando o erro.

Use uma interface gráfica, tipo o "package-kit" ou o "yumex", para isso.


4. Re: yum com problemas

George
George511

(usa Debian)

Enviado em 29/08/2011 - 23:04h

izaias tentei fazer mas deu o erro novamente

[root@server ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@server ~]# yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 104, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 343, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 453, in doCommand
base.repos.doSetup()
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 71, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 176, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_mirrorlist()
File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
self._poll_mirrors()
File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
pollThread.start()
File "/usr/lib/python2.4/threading.py", line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread

pinduvoz: nao entendi oque vc quis dizer :/


5. Re: yum com problemas

Andre (pinduvoz)
pinduvoz

(usa Debian)

Enviado em 29/08/2011 - 23:32h

Abra o instalador gráfico de programas e use a busca para encontrar o plugin "fastestmirror". Remova-o e teste o yum.


6. Re: yum com problemas

Andre (pinduvoz)
pinduvoz

(usa Debian)

Enviado em 29/08/2011 - 23:35h

Veja:

http://www.techiecorner.com/113/centos-install-yum-fastest-mirror-plugin-for-faster-connection-updat...

Tente:

yum remove yum-plugin-fastestmirror
yum update

Se quiser e o yum funcionar, pode tentar reinstalar o plugin após a atualização geral.


7. Re: yum com problemas

George
George511

(usa Debian)

Enviado em 29/08/2011 - 23:58h

pinduvoz eu tentei olha oque apareceu

[root@server ~]# yum remove yum-plugin-fastestmirror
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: yum-plugin-fastestmirror
No Packages marked for removal



8. Re: yum com problemas

Perfil removido
removido

(usa Nenhuma)

Enviado em 30/08/2011 - 00:00h

Minha última cartada:
# yum --disableplugin=fastestmirror update


9. Re: yum com problemas

Andre (pinduvoz)
pinduvoz

(usa Debian)

Enviado em 30/08/2011 - 00:15h

Tente

yum remove fastestmirror

ou

yum remove yum-fastestmirror


10. Re: yum com problemas

George
George511

(usa Debian)

Enviado em 31/08/2011 - 12:09h

pinduvoz eu fiz oque vc disse, mais acho que removeu o yum, como vou instala-lo novamente?

veja oque aparece agora quando digito o comando yum:

[root@server ~]# yum update
-bash: yum: command not found
[root@server ~]#







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts