CentOS 7 yum Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile


yum install nginx发生的错误

yum install nginx
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
.....
No package nginx available.
Error: Nothing to do

 

解决方法:

可能缺乏epel
EPEL (Extra Packages for Enterprise Linux)是基于Fedora的一个项目,为“红帽系”的操作系统提供额外的软件包,适用于RHEL、CentOS和Scientific Linux.

yum install epel-release

 

如果还没解决:

换源

禁用插件

1.修改插件的配置文件

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

 

enabled = 0//由1改为0,禁用该插件
2.修改yum的配置文件

# vim /etc/yum.conf

 

plugins= 0//改为0,不使用插件


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM