yum报错: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
2015-11-25 19:03
656 查看
在Centos 5.x或6.x上安装RHEL EPEL Repo
repository,资源库,源的意思。RHEL EPEL(Extra Packages for Enterprise Linux) Repo是Linux发行版中最大的软件仓库之一,免费,丰富的软件包更新。安装步骤
Centos 5.x
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-5.rpmrpm -ivh epel-release-5-4.noarch.rpmrpm -ivh remi-release-5.rpmCentos 6.x
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmrpm -ivh epel-release-6-8.noarch.rpmrpm -ivh remi-release-6.rpm
完成后的设置
ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
返回
/etc/yum.repos.d/epel.repo/etc/yum.repos.d/epel-testing.repo/etc/yum.repos.d/remi.repo
允许remi repository
vi /etc/yum.repos.d/remi.repo
编辑[remi]下的enabled选项从0设为1
[remi]name=Les RPM de remi pour Enterprise Linux 6 - $basearch#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirrorenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
至此,安装完成。
安装完运行yum报错:
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again解决办法:
vi /etc/yum.repos.d/epel.repo
编辑[epel]下的baseurl前的#号去掉,mirrorlist前添加#号。正确配置如下:
[epel]name=Extra Packages for Enterprise Linux 6 - $basearchbaseurl=http://download.fedoraproject.org/pub/epel/6/$basearch#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearchfailovermethod=priorityenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
再运行
yum makecache
相关文章推荐
- LeetCode Contains Duplicate II
- AIDL 写法
- main函数的参数传递
- 载入OpenSSL的动态库——学会使用tryToLoadOpenSslWin32Library和QPair
- SharePoint 2013 Error - File names can't contain the following characters: & " ? < > # {} % ~ / \.
- Handler一定要在主线程实例化吗?new Handler()和new Handler(Looper.getMainLooper())的区别
- mybaits 多个参数传入用#{0,1,....}或者@Param注释
- 获取子进程终止状态:wait和waitpid
- ATL创建COM组件时找不到dllmain入口函数
- 深度分析WM_PAINT和WM_ERASEBKGND消息
- Lock&Condition实现线程同步通信
- codeforces-242A-Heads or Tails【暴力】
- ORA-01994: GRANT failed: password file missing or disabled
- 关于Installation error: INSTALL_FAILED_NO_MATCHING_ABIS的解决方法
- AIR 移动设备上的存储控制
- git中报unable to auto-detect email address 错误的解决拌办法
- 人脸检测“A Fast and Accurate Unconstrained Face Detector”
- 查找(一)史上最简单清晰的红黑树讲解 http://blog.csdn.net/yang_yulei/article/details/26066409
- paint和paintComponent方法的关系
- POJ1273 HDU1532 Drainage Ditches