centos 6 epel替代版本库

我已经在我的服务器上安装了EPEL存储库。 我想安装新的东西,我得到这个错误与yum:

PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentALT. Please verify its path and try again

当我检查EPEL(编者注:实际上CentALT,但保留原来的清晰)url,我得到了这个错误与url :

 403 Forbidden - nginx 

所以我决定改变EPEL的来源。 我经历了http://howto.wikin.com/wiki/How_to_Delete_Centos_Repositories上的步骤来删除以前的存储库,当我做yum repolist得到这个:

 Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: centos.mirror.gtcomm.net * extras: centos.mirror.gtcomm.net * updates: centos.mirror.iweb.ca http://centos.alt.ru/repository/centos/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden" Trying other mirror. repo id repo name status CentALT CentALT Packages for Enterprise Linux 6 - x86_64 0 base CentOS-6 - Base 0 extras CentOS-6 - Extras 0 mariadb MariaDB 0 updates CentOS-6 - Updates 0 repolist: 0 

现在,当我想用​​这个命令安装EPEL仓库时:

sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

仍然得到这个错误:

Retrieving http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm Preparing... ########################################### [100%] package epel-release-6-8.noarch is already installed

我怎样才能安装EPEL回购?

要重新安装EPEL仓库,请为该仓库的.rpm运行yum reinstall

 yum reinstall 'http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm' 

你把问题归咎于错误的存储库。 错误是为CentALT存储库。 在这一点上似乎没有任何作用(返回403s)。 在这种情况下,解决scheme是删除CentALT存储库并运行yum clean all 。 至于EPEL没有出现在资源库列表中,看看你运行yum clean all后会发生什么。 看来它仍然安装在你的系统上。