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-2023 CODEPRJ.COM