Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

  1. Loaded plugins: fastestmirror
  2. One of the configured repositories failed (Unknown),
  3. and yum doesn't have enough cached data to continue. At this point the only
  4. safe thing yum can do is fail. There are a few ways to work "fix" this:
  5. 1. Contact the upstream for the repository and get them to fix the problem.
  6. 2. Reconfigure the baseurl/etc. for the repository, to point to a working
  7. upstream. This is most often useful if you are using a newer
  8. distribution release than is supported by the repository (and the
  9. packages for the previous distribution release still work).
  10. 3. Run the command with the repository temporarily disabled
  11. yum --disablerepo=<repoid> ...
  12. 4. Disable the repository permanently, so yum won't use it by default. Yum
  13. will then just ignore the repository until you permanently enable it
  14. again or use --enablerepo for temporary usage:
  15. yum-config-manager --disable <repoid>
  16. or
  17. subscription-manager repos --disable=<repoid>
  18. 5. Configure the failing repository to be skipped, if it is unavailable.
  19. Note that yum will try to contact the repo. when it runs most commands,
  20. so will have to try and fail each time (and thus. yum will be be much
  21. slower). If it is a very temporary problem though, this is often a nice
  22. compromise:
  23. yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
  24. Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

  今天在使用yum安装软件时遇到了如上报错,提示信息发现提示我epel源有问题,但是经过和可以安装的主机epel源的对比,发现并没有差别,所以问题肯定不在epel源配置文件上,所以就需要分析环境上的差异了,这台云主机是一台纯内网服务器,使用yum安装是通过使用了公网云主机的tinyproxy代理,而且使用curl命令测试连接网站没问题,也就是当前代理还在生效中,epel源就是使用yum命令安装的,所以yum也没问题,解决办法以及配置写到下面:

vim /etc/profile

  1. export http_proxy=http://192.168.1.1:2525
  2. export https_proxy=https://192.168.1.1:2525

  报错的原因是我在使用tinyproxy代理时,本地配置http全局代理,但是没添加https协议的代理,所以出现了以上的报错,添加https协议代理后,yum可以正常安装。

Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again 问题分析的更多相关文章

  1. Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

    虚拟机恢复快照后,使用yum安装软件,提示下面的信息,开始以为是yum源的问题或者DNS的问题,但是无果,最后再看一下服务器的时间,坑了,还原快照,时间变成以前的了. [root@localhost ...

  2. Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again 解决方法

    vim /etc/yum.repos.d/epel.repo 1 [epel] 2 name=Extra Packages for Enterprise Linux 7 - $basearch 3 # ...

  3. CentOS7 yum报 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path解决方法

    打开/etc/yum.repos.d/epel.repo,将 [epel] name=Extra Packages for Enterprise Linux 6 – $basearch baseurl ...

  4. 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 ...

  5. yum报错: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

    在Centos 5.x或6.x上安装RHEL EPEL Repo repository,资源库,源的意思.RHEL EPEL(Extra Packages for Enterprise Linux)  ...

  6. 运行yum报错Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

    今天给Centos通过rpm -Uvh装了个epel的扩展后,执行yum就开始报错: Error: Cannot retrieve metalink for repository: epel. Ple ...

  7. Cannot retrieve metalink for repository: epel. Please verify its path and try again

    今天在测试环境使用yum安装,遇到一个问题: Error: Cannot retrieve metalink for repository: epel. Please verify its path ...

  8. 运行yum报错:Error: Cannot retrieve metalink for repository: epel. Please verify its path

    Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 当我们安装第三方扩 ...

  9. Cannot retrieve metalink for repository: epel.

    Error: Cannot retrieve metalink for repository: epel. Please verify its path and                     ...

随机推荐

  1. IPV6修复工具

    https://www.cnblogs.com/ysugyl/p/9000940.html

  2. netty1 快速入门

    Netty是一个高性能.异步事件驱动的网路通信框架 ,由于精力有限,本人并没有对其源 码做了特别细致的研究.如果下面的内容有错误或不严谨的地方,也请大家指正和谅解. Netty的线程模型是Reacto ...

  3. sql2005性能优化(在32位系统上突破2G内存使用量的方法) .

    转载自http://blog.csdn.net/soldierluo/article/details/6589743 服务器磁盘为(SAS)IBM组成RAID0+1,SQL2K5只识别4G内存,实际只 ...

  4. 经典矩阵快速幂之一-----poj3233(矩阵套矩阵

    题意:给你一个矩阵A,求S=A+A^2+A^3+...+A^k. 其实这个当时我看着毫无头绪,看了他们给的矩阵发现好!精!妙! 我们这样看 是不是有点思路! 没错!就是右上角,我们以此类推可以得到A+ ...

  5. mysql 5.7 修改密码

    mysql 5.7 ,user表就没有password 这个字段了. ') where user='root' and host='localhost'; 这样当然就改不了密码了. ') where ...

  6. 2018.10.29 NOIP训练 数据结构(带修改莫队)

    传送门 带修莫队板题. 直接按照经典写法做就行了. 代码

  7. (12)We should aim for perfection — and stop fearing failure

    https://www.ted.com/talks/jon_bowers_we_should_aim_for_perfection_and_stop_fearing_failure/transcrip ...

  8. hadoop学习笔记(三):hdfs体系结构和读写流程(转)

    原文:https://www.cnblogs.com/codeOfLife/p/5375120.html 目录 HDFS 是做什么的 HDFS 从何而来 为什么选择 HDFS 存储数据 HDFS 如何 ...

  9. Ubuntu下删除卸载程序图标

    Ubuntu下删除卸载程序图标 方法一:直接在终端输入命令alacarte.可以任意增.改.隐藏.显示菜单,但无法删除菜单,即使拥有root权限. 方法二:注意几个目录和文件./usr/share/a ...

  10. 手把手教Electron+vue的使用

    .现如今前端框架数不胜数,尤其是angular.vue吸引一大批前端开发者,在这个高新技术快速崛起的时代,自然少不了各种框架的结合使用.接下来是介绍electron+vue的结合使用. 2.Elect ...