解决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

上一篇:Docker 换源


下一篇:python pip 包的导入与导出