报错处理——Error getting repository data for epel, repository not found
Posted zhuminghui
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报错处理——Error getting repository data for epel, repository not found相关的知识,希望对你有一定的参考价值。
报错原因
系统中未启用 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的主要内容,如果未能解决你的问题,请参考以下文章