解决yum 不能更新问题 :yum 报错Loaded plugins: fastestmirror, refresh-packagekit, security

因为测试需要,安装了CentOS 6.4,并需要安装kvm,虚拟Windows 2008进行测试。

实际操作中,因为CentOS 6已经停止维护了,所以每一步操作基本都存在一些问题。

Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。

在安装kvm的过程中,使用yum进行安装,提示错误如下:

Loaded plugins: fastestmirror, refresh-packagekit, security

fastestmirror是yum的一个加速插件,提示意思是插件不能用了。

那就先禁用吧

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

将enable=1改为0

[main]
enabled=0    //由 1 改成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

然后修改yum 配置文件,plugins=1改为0,不使用插件

vim /etc/yum.conf
9 plugins=0  //不使用插件

然后清除缓存

yum clean all
yum makecache

 

posted @ 2021-01-25 14:06  古道轻风  阅读(1451)  评论(0编辑  收藏  举报