报错
在linux系统中安装yum install vim时报错已加载插件:fastestmirrorLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile Could not retrieve mirrorlist mirrorlist.centos.org/?release=7&… error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"
原因
fastestmirror是yum的一个加速插件,这里是插件提示信息是插件不能用了。
解决
给它禁用就好了 运行下面语句,修改配置文件
vim /etc/yum/pluginconf.d/fastestmirror.conf
由enabled = 1修改为enabled = 0 意思是禁用它 再运行
vim /etc/yum.conf
修改为plugins=0 不使用插件