我已经在我的服务器上安装了 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
Run Code Online (Sandbox Code Playgroud)
所以我决定换个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
Run Code Online (Sandbox Code Playgroud)
现在,当我想使用以下命令安装 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 存储库?
您将问题归因于错误的存储库。该错误针对 CentALT 存储库。此时它似乎已停止使用(返回 403)。在这种情况下的解决方案是删除 CentALT 存储库并运行yum clean all
. 至于 EPEL 没有出现在存储库列表中,请查看运行后会发生什么yum clean all
。它似乎仍然安装在您的系统上。
归档时间: |
|
查看次数: |
4270 次 |
最近记录: |