Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

yum on Centos stuck at "loaded plugins: fastestmirror" [closed]

Tags:

centos

yum

When trying to install a package using yum on Centos, the command is getting stuck at the first part:

loaded plugins: fastestmirror

I've tried:

  1. removing /var/cache/yum/timedhosts.txt See suggestion
  2. yum update yum
  3. making sure there are no other processes running and removing /var/run/yum.pid
  4. yum clean all See suggestion
  5. Checked that DNS works for all the servers in the /etc/yum.repos.d/*.repo files
  6. Set the enabled flag in vi /etc/yum/pluginconf.d/fastestmirror.conf // enabled=0 See Suggestion

... still having the problem.

Any ideas?

like image 804
Drew Avatar asked Jul 27 '12 21:07

Drew


2 Answers

For me what ended up fixing it was this:

rm -f /var/lib/rpm/__*
rpm --rebuilddb -v -v

Then rerunning yum command I was trying to run in the first place.

It got stuck for about a minute on:

Determining fastest mirrors

...but then it completed without errors

Suggested Here

like image 58
Drew Avatar answered Oct 29 '22 09:10

Drew


Worked for me : (+)

Edit the following file.

/etc/yum/pluginconf.d/fastestmirror.conf

Change enabled=1 to enabled=0 to disable the fastestmorror plugin.

That should fix it.

You don't need to restart anything for that change to take effect. Just run yum again.

like image 31
Milad Safaei Avatar answered Oct 29 '22 07:10

Milad Safaei