报错原因
系统中未启用 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
原文地址:https://www.cnblogs.com/zhuminghui/p/12102122.html
时间: 2024-10-12 04:17:13