系统相关
首页 > 系统相关> > 解决yum下 fastestmirror Determining fastest mirrors 的错误问题

解决yum下 fastestmirror Determining fastest mirrors 的错误问题

作者:互联网

[root@localhost ~]# yum update

Loaded plugins: fastestmirror Loading mirror speeds from cached

hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file. 

出现此错误:

     执行:

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

enabled=0 //把1改为0

verbose=0

socket_timeout=3

hostfilepath=/var/cache/yum/timedhosts.txt

maxhostfileage=10

maxthreads=15

#exclude=.gov, facebook

修改为:

#vi /etc/yum.conf

[main]

cachedir=/var/cache/yum/$basearch/$releasever

keepcache=0

debuglevel=2

logfile=/var/log/yum.log

exactarch=1

obsoletes=1

gpgcheck=1

plugins=1 #将plugins的值修改为0

installonly_limit=5

标签:vi,mirrors,Determining,mirror,fastestmirror,yum,plugins,var
来源: https://blog.csdn.net/yjcljx/article/details/115187999