码迷,mamicode.com
首页 > 其他好文 > 详细

报错处理——Error getting repository data for epel, repository not found

时间:2019-12-27 09:23:17      阅读:473      评论:0      收藏:0      [点我收藏+]

标签:lease   自动   str   for   linu   yum   error   在线   osi   

报错原因

  系统中未启用 RHEL/CentOS 7.x/6.x/5.x 的 EPEL 存储库。

  EPEL 代表企业 Linux 及其在线分布式的额外软件包,可以由 yum 程序自动下载和安装。

  只要启用了此选项,错误就会解决

 

解决方法

  • CentOS7
# 如果没有安装 wget 需要先  yum install wget
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm

 

  •  CentOS6
# RHEL/CentOS 6 32-Bit 
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

# RHEL/CentOS 6 64-Bit
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

 

有必要的话再

yum update

 

 

 

       

 

报错处理——Error getting repository data for epel, repository not found

标签:lease   自动   str   for   linu   yum   error   在线   osi   

原文地址:https://www.cnblogs.com/zhuminghui/p/12102122.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!