Yum update Crash? – Determining fastest mirrors Traceback ( find the solution here )

Yum update Crash? – Determining fastest mirrors Traceback ( find the solution here )

centoshi kawan kawan, Selamat hari minggu..
Apakah anda pernah menemukan masalah seperti ini? emmm mari kita lihat😀. dan temukan solusinya.

[root@ryh ~]# 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 309, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 178, in main
result, resultmsgs = base.doCommands()
File “/usr/share/yum-cli/cli.py”, line 345, 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 662, in
pkgSack = property(fget=lambda self: self._getSacks(),
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 502, in _getSacks
self.repos.populateSack(which=repos)
File “/usr/lib/python2.4/site-packages/yum/repos.py”, line 232, in populateSack
self.doSetup()
File “/usr/lib/python2.4/site-packages/yum/repos.py”, line 79, in doSetup
self.ayum.plugins.run(‘postreposetup’)
File “/usr/lib/python2.4/site-packages/yum/plugins.py”, line 179, 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

Sepertinya anda sedang dalam masalah yang sangat sangattttt tidak serius😀.
karena masalah seperti itu sangat gampang untuk mengatasinya😀. ok… gan langsung aja…

SOLUSI
Solusinya adalah untuk menonaktifkan plugin mirror dengan mengedit / etc / yum / pluginconf.d / fastestmirror.conf.

Sebelumnya, coba kita lihat dulu isi dalam pluginconf.d, dengan memakai perintah CAT.

[root@ryh ~]# cat /etc/yum/pluginconf.d/fastestmirror.conf
[main]
enabled=1
verbose=0
socket_timeout=3
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
[root@ryh ~]#

nah sesudah kita lihat, mari kita menonaktifkan plugin mirror. dengan memakai perintah vi, nano, atau pico.
tapi disini saya lebih menyukai memakai editor vi

[root@ryh ~]# vi /etc/yum/pluginconf.d/fastestmirror.conf

jika sudah muncul editor, maka tekan huruf i.. lalu mulai mengubah. yang di ubah hanyalah Enabled=1 menjadi Enabled=0 seperti di bawah ini.
================================
[main]
enabled=0
verbose=0
socket_timeout=3
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
================================

nah jika sudah selesai melakukan edit, maka kita tekan ESC.
untuk melakukan save dan exit dari editor vi, maka kita tekan shift + : ( tanda bagi ) trus menuliskan wq dan enter.

nah sesudah kita melakukan Edit pada /etc/yum/pluginconf.d/fastestmirror.conf, maka kita coba lagi perintah update.
[root@ryh ~]# yum update

tetapi jika masih ada error, coba ikuti dengan bari beberapa perintah berikut
yum clean all
yum check-update

seep, dijamin deh gak bakal error lagi. kalau error atau masih ada pertanyaan.. emmm
silahkan

Follow My Twitter : @rendyhukom

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s