商会资讯

 找回密码
 立即注册

QQ登录

只需一步,快速开始

用新浪微博连接

一步搞定

搜索
热搜: 活动 交友 discuz
查看: 4489|回复: 0
打印 上一主题 下一主题

CentOS系统yum源配置修改、yum安装软件包源码包出错解决办...

[复制链接]

109

主题

1

好友

3774

积分

管理员

Rank: 9Rank: 9Rank: 9

  • ta_mind
    mb_qb7
    2013-3-19 01:56
  • classn_01: 366 classn_02

    [LV.9]以坛为家II

    跳转到指定楼层
    楼主
    发表于 2018-1-6 11:00:45 |只看该作者 |正序浏览
    yum安装包时报错:
    Could not retrieve mirrorlist http://mirrorlist.repoforge.org/el6/mirrors-rpmforge error was
    14: PYCURL ERROR 7 - "couldn't connect to host"
    http://apt.sw.be/redhat/el6/en/x ... epodata/repomd.xml: [Errno 14]
    PYCURL ERROR 7 - "couldn't connect to host"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.
    Please verify its path and try again

    解决办法:

    1、下载新的CentOS-Base.repo 到/etc/yum.repos.d/【版本是5.*的下载5、6.*下载6、7.*下载7】
    5.*的下载连接:
    [root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

    6.*的下载连接:
    [root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

    7.*的下载连接:
    [root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

    2、然后执行以下命令:

    [root@localhost ~]# rpm -e rpmforge-release --nodeps

    [root@localhost ~]# yum clean all

    [root@localhost ~]# yum update


    分享到: QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    分享分享0 收藏收藏0 转发到微博
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    回顶部