linux下yum安装时出现Loaded plugins: fastestmirror

linux下yum安装时出现Loaded plugins: fastestmirror

报错环境以及问题报错:

报错环境:
Linux version 3.10.0-1160.11.1.el7.x86_64
问题报错:
yum install net-tools时报错Loaded plugins: fastestmirror

[root@192-168-59-128 ~]# yum -y install vim*
			Loaded plugins: fastestmirror
			Determining fastest mirrors
			centos7.7                                              | 3.6 kB     00:00     
			Not using downloaded centos7.7/repomd.xml because it is older than what we have:
			Current   : Thu Sep 12 03:01:50 2019
			Downloaded: Tue Sep 10 02:59:14 2019

解决方法:

注:fastestmirror是yum的一个加速插件,这边提示的是:插件不可用

方法一:

1.需要修改配置文件,即fastestmirror.conf

[root@192-168-59-128 /]# vim  /etc/yum/pluginconf.d/fastestmirror.conf
	[main]
	enabled=1						#enabled=1修改为enabled=0 	
	verbose=0
	always_print_best_host = true
	socket_timeout=3

说明:把enabled = 1修改为enabled = 0 表示的是:禁用它

2.需要修改配置文件,即yum.conf

[root@192-168-59-128 /]# vim /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=1修改为plugins=0 
	installonly_limit=5

说明:把plugins=1修改为plugins=0 表示的是:不使用插件

3.清除缓存并重新构建yum源

[root@192-168-59-128 /]# yum clean all
[root@192-168-59-128 /]# yum clean dbcache
[root@192-168-59-128 /]# yum makecache

这样问题就解决了!!!

  • 4
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值