Full error code:
[[email protected] ~]# yum install emacs
Loaded plugins: fastestmirror
Determining fastest mirrors
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
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
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
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
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 434, in _getSacks
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 223, in populateSack
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 71, in doSetup
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
File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
File "/usr/lib/python2.4/threading.py", line 416, in start
thread.error: can't start new thread
This error is due to the inadequate memory for yum operation. This occurs due to Yum’s fastest-mirror plugin. So, if you have a low end VPS then you may see this error often. To solve this just disable that plugin.
You can disable this plugin in 2 ways :
Login using root issue and issue this command.vi /etc/yum/pluginconf.d/fastestmirror.conf[/code]
And change this lineenable=1[/code]
Login using root issue and issue this command.yum --disableplugin=fastestmirror update[/code]
This plugin is used to find the fastest mirrors/sources available for the software so that the update/install process is quicker. To re-enable the plugin, just run the command.yum --enableplugin=fastestmirror update[/code]
change enable=1 in fastestmirror.conf file
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.