码迷,mamicode.com
首页 > 数据库 > 详细

yum安装升级php,mysql报错:epel. Please verify its path and try again

时间:2016-11-17 21:09:55      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:cannot retrieve metalink for repository: epel. please verify its path and try again

yum安装时出现:Cannot retrieve metalink for repository: epel. Please verify its path and try again


在CentOS 6.3 x86_64下安装php-mcrypt的时候出现了问题:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again,需要安装epel源。

解决方法: 一句话:把/etc/yum.repos.d/epel.repo,文件第3行注释去掉,把第四行注释掉。具体如下:

打开/etc/yum.repos.d/epel.repo,将

  1. [epel]

  2. name=Extra Packages for Enterprise Linux 6 - $basearch

  3. #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch

  4. mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch

修改为

  1. [epel]

  2. name=Extra Packages for Enterprise Linux 6 - $basearch

  3. baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch

  4. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch


本文出自 “运维笔录 美玲” 博客,请务必保留此出处http://meiling.blog.51cto.com/6220221/1873942

yum安装升级php,mysql报错:epel. Please verify its path and try again

标签:cannot retrieve metalink for repository: epel. please verify its path and try again

原文地址:http://meiling.blog.51cto.com/6220221/1873942

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