无法连接 yum repo

无法连接 yum repo

当我运行 yum install 时出现以下错误。

root@datanode# yum list

CRITICAL:yum.cli:Config Error: Error accessing file for config
file:///etc/yum.conf

 root@datanode# rpm -ev yum 

        error: Failed dependencies:
        yum >= 3.0 is needed by (installed) yum-fastestmirror-1.1.16-21.el5.centos.noarch
        yum >= 3.2.18 is needed by (installed) yum-security-1.1.16-21.el5.centos.noarch
        yum >= 3.2.22 is needed by (installed) yum-updatesd-0.9-6.el5_10.noarch


root@datanode# cd /etc/yum.repos.d 

root@datanode:/etc/yum.repos.d# ll

total 36
-rw-r--r-- 1 root root 1926 Oct  7  2013 CentOS-Base.repo

-rw-r--r-- 1 root root  636 Oct  7  2013 CentOS-Debuginfo.repo

-rw-r--r-- 1 root root  626 Oct  7  2013 CentOS-Media.repo

-rw-r--r-- 1 root root 7574 Oct  7  2013 CentOS-Vault.repo


[email protected]:/etc/yum.repos.d# cat
/etc/yum.conf.FCS


[main] proxy=http://cache.backside.sv2.tellme.com:3128/

cachedir=/var/cache/yum keepcache=0 debuglevel=2

logfile=/var/log/yum.log distroverpkg=redhat-release tolerant=1

exactarch=1 obsoletes=1 gpgcheck=1 plugins=1

bugtracker_url=http://bugs.centos.org/yum5bug

# Note: yum-RHN-plugin doesn't honor this. metadata_expire=1h

installonly_limit = 5

# PUT YOUR REPOS HERE OR IN separate files named file.repo

# in /etc/yum.repos.d

答案1

看起来你的 yum 坏了......

CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf- 您能否检查您的配置文件是否真实存在/etc/yum.conf以及其内容是否有效。

您可以尝试重新安装这里。您可能需要找到自己的部门。

相关内容