zoukankan      html  css  js  c++  java
  • 使用epel源安装依赖包时报错

    [root@test_web1 ~]#  rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    warning: /var/tmp/rpm-tmp.lFLueF: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
    Preparing...                ########################################### [100%]
       1:epel-release           ########################################### [100%]

    [root@test_web1 ~]# yum install perl-IO-Socket-SSL perl-DBD-MySQL perl-Time-HiRes socat nc libaio rsync -y
    Loaded plugins: fastestmirror
    Determining fastest mirrors
    Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again #这里报错了

    查看了下resolv.conf文件和yum clean all之后还是不行,那么就查看一下epel的yum源配置文件,可能是https地址无法连接,注释掉https的地址,打开http地址试试:

    vim /etc/yum.repos.d/epel.repo

    如下图:

     

    再次尝试yum安装:

    [root@test_web1 ~]# yum install perl-IO-Socket-SSL perl-DBD-MySQL perl-Time-HiRes socat nc libaio rsync -y
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirrors.pubyun.com
     * extras: mirrors.pubyun.com
     * updates: mirrors.163.com
    base                                                                                                                                   | 3.7 kB     00:00    
    base/primary_db                                                                                                                        | 4.6 MB     00:15    
    epel                                                                                                                                   | 4.3 kB     00:00    
    epel/primary_db                                                                                                                        | 5.7 MB     00:19    
    extras                                                                                                                                 | 3.4 kB     00:00    
    extras/primary_db                                                                                                                      |  34 kB     00:00    
    updates                                                                                                                                | 3.4 kB     00:00    
    updates/primary_db                                                                                                                     | 3.3 MB     00:11    
    Setting up Install Process
    Package rsync-3.0.6-12.el6.x86_64 already installed and latest version

    ................   

    发现已经可以正常使用了

  • 相关阅读:
    解决HttpServletResponse输出的中文乱码问题
    Java微信公众平台开发(四)--回复消息的分类及实体的创建
    Java微信公众平台开发(三)--接收消息的分类及实体的创建
    Java微信公众平台开发(二)--微信服务器post消息体的接收
    Java微信公众平台开发(一)--接入微信公众平台
    ****创业者必看:黄太吉商业计划书完整版
    php变量的几种写法
    **对比$_POST、$GLOBALS['HTTP_RAW_POST_DATA']和file_get_contents('php://input')
    CodeIgniter报错: You must use the "set" method to update an entry
    2016年最新苹果开发者账号注册申请流程最强详解!
  • 原文地址:https://www.cnblogs.com/xiaoboluo768/p/5147510.html
Copyright © 2011-2022 走看看