修改文件:vi /etc/yum/pluginconf.d/refresh-packagekit.conf 配置文件中改为0.
如上所示。这个是网上的普遍答案。但是,修改为了0以后,并没有解决这个问题。
再次查看当前文件夹下的 vi /etc/yum/pluginconf.d/fastestmirror.conf 文件。
[main]
enabled=0
verbose=0
always_print_best_host = true
socket_timeout=3
# Relative paths are relative to the cachedir (and so works for users as well
# as root).
hostfilepath=timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
#include_only=.nl,.de,.uk,.ie
注意:enable=0 切勿写错。我改的时候值为o;