问题描述:
使用以下命令在CentOS7上安装软件包:
yum install <package_name>
错误:
# yum install httpd
Loaded plugins: fastestmirror
http://centos-distro.1gservers.com/7.2.1511/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden
Trying other mirror.
To address this issue, please refer to the below knowledge base article
https://access.redhat.com/solutions/69319
If above article doesn't help to resolve this issue, please create a bug on https://bugs.centos.org/
其他信息
>* I can be sure I did not have a proxy setting in /etc/yum.conf.
>* The firewall is closed.
>* I already try yum clean all
可能涉及的内容
我已经在/etc/yum.conf中添加了以下两个配置:
timeout=9999
minrate=0
我添加它们是因为有时我会遇到太慢或超时错误。如果我从配置中移除这两个,错误将被替换为
# yum install httpd
Loaded plugins: fastestmirror
http://centos-distro.1gservers.com/7.2.1511/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://centos-distro.1gservers.com/7.2.1511/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
错误信息提供了一个链接,但是这个链接只能被RedHat支持账户阅读。我试着在谷歌上搜索解决方法,但是结果要么没有关联,要么不能解决我的问题。Stack Overflow上也有一篇关于此问题的文章,但是也无法帮助我。
有人能给出一些建议吗?