LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Yum on Centos 6.0 broken... (https://www.linuxquestions.org/questions/linux-general-1/yum-on-centos-6-0-broken-941318/)

IronTed 04-23-2012 10:48 AM

Yum on Centos 6.0 broken...
 
Hi! I encountered the following messages when I tried to install vsftpd:


[root@test6 ~]# yum install vsftpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 254, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 109, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 353, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 110, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 774, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 564, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 250, in populateSack
self.doSetup()
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 83, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 191, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_mirrorlist()
File "/usr/lib/yum-plugins/fastestmirror.py", line 349, in get_mirrorlist
self._poll_mirrors()
File "/usr/lib/yum-plugins/fastestmirror.py", line 393, in _poll_mirrors
pollThread.start()
File "/usr/lib64/python2.6/threading.py", line 474, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread


It seems Yum is broken and I don't know why. Previously it was working fine when I installed httpd mysql and all the other stuff. Would be really grateful if anyone can help. Thanks!


Ted

amani 04-24-2012 10:39 AM

Try after erasing yum plugins like yum-tmprepo ... maybe fastestmirror

What happens with
yum check
yum update

Ashish Sood 04-26-2012 03:39 AM

I was facing this problem couple of time before , sometime just after start of my pc , i mess with this problem alot sometime i mess with this problem with couple of days and finally i got the solution, i just restart my pc and and this problem will no more, i think u should do this . because what i thing your yum command is not working , try use only yum on the terminal and then enter.

amani 04-26-2012 10:17 AM

Quote:

Originally Posted by Ashish Sood (Post 4663357)
I was facing this problem couple of time before , sometime just after start of my pc , i mess with this problem alot sometime i mess with this problem with couple of days and finally i got the solution, i just restart my pc and and this problem will no more, i think u should do this . because what i thing your yum command is not working , try use only yum on the terminal and then enter.

OP is manually running yum... the only other way is to schedule a job.
The problem relates to some yum plugin.


All times are GMT -5. The time now is 10:16 AM.