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

前端之家收集整理的这篇文章主要介绍了CentOS系统yum源配置修改、yum安装软件包源码包出错解决办法!前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

yum源配置、CentOS6.5系统yum配置方法


yum安装包时报错:

SyntaxHighlighter ps" width="814" style="width: 768px;">Box-sizing: content-Box !important; min-height: auto !important;">Box-sizing: content-Box !important; min-height: auto !important;" class="firstRow">
Box-sizing: content-Box !important; min-height: auto !important; color: rgb(175,175,175) !important; user-select: none !important;" width="NaN">
Box-sizing: content-Box !important; min-height: auto !important; white-space: pre !important;">1
Box-sizing: content-Box !important; min-height: auto !important; white-space: pre !important;">2
Box-sizing: content-Box !important; min-height: auto !important; white-space: pre !important;">3
Box-sizing: content-Box !important; min-height: auto !important; white-space: pre !important;">4
Box-sizing: content-Box !important; min-height: auto !important; white-space: pre !important;">5
Box-sizing: content-Box !important; min-height: auto !important; white-space: pre !important;">6
Box-sizing: content-Box !important; min-height: auto !important; white-space: pre !important;">7
Box-sizing: content-Box !important; min-height: auto !important;" width="776">
Box-sizing: content-Box !important; min-height: auto !important;">Could not retrieve mirrorlist http://mirrorlist.repoforge.org/el6/mirrors-rpmforge error was
Box-sizing: content-Box !important; min-height: auto !important;"> 14: PYCURL ERROR 7 - "couldn't connect to host"
Box-sizing: content-Box !important; min-height: auto !important;">http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] 
Box-sizing: content-Box !important; min-height: auto !important;"> PYCURL ERROR 7 - "couldn't connect to host"
Box-sizing: content-Box !important; min-height: auto !important;">Trying other mirror.
Box-sizing: content-Box !important; min-height: auto !important;"> Error: Cannot retrieve repository Metadata (repomd.xml) for repository: rpmforge. 
Box-sizing: content-Box !important; min-height: auto !important;">Please verify its path and try again
解决办法:

1、下载新的CentOS-Base.repo 到/etc/yum.repos.d/【版本是

SyntaxHighlighter bash" width="822" style="width: 768px;">Box-sizing: content-Box !important; min-height: auto !important;">Box-sizing: content-Box !important; min-height: auto !important;" class="firstRow">
Box-sizing: content-Box !important; min-height: auto !important; white-space: pre !important;">1Box-sizing: content-Box !important; min-height: auto !important;" width="784">
Box-sizing: content-Box !important; min-height: auto !important;"> [root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

SyntaxHighlighter bash" width="822" style="width: 768px;">Box-sizing: content-Box !important; min-height: auto !important;">Box-sizing: content-Box !important; min-height: auto !important;" class="firstRow">

SyntaxHighlighter bash" width="822" style="width: 768px;">Box-sizing: content-Box !important; min-height: auto !important;">Box-sizing: content-Box !important; min-height: auto !important;" class="firstRow">
后执行以下命令:

SyntaxHighlighter bash" width="814" style="width: 768px;">Box-sizing: content-Box !important; min-height: auto !important;">Box-sizing: content-Box !important; min-height: auto !important;" class="firstRow">
Box-sizing: content-Box !important; min-height: auto !important; white-space: pre !important;">5 Box-sizing: content-Box !important; min-height: auto !important;" width="776">
Box-sizing: content-Box !important; min-height: auto !important;"> # rpm -e rpmforge-release --nodeps
Box-sizing: content-Box !important; min-height: auto !important;"> 
Box-sizing: content-Box !important; min-height: auto !important;"> # yum clean all 
Box-sizing: content-Box !important; min-height: auto !important;"> 
Box-sizing: content-Box !important; min-height: auto !important;"> # yum update

原文链接:https://www.f2er.com/linux/423007.html

猜你在找的Linux相关文章