On yumming, you may get the following yum update errors :
[root@ssages]# yum update
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 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
The fix is quite easy. On the error log, you may notice a directory “/usr/lib/yum-plugins/”. Inside this, there was a corrupted mirror file ‘threading.py’. Just remove or move it to another location to fix the issue.
Edit : Basically it is because of the corrupt repo entries. If you are able to fix the corrupt repo entries that is the proper solution that going for this bad, but speedy workaround ð