【发布时间】:2014-01-16 07:18:35
【问题描述】:
我正在使用亚马逊的 installing a LAMP server 教程。前几条指令涉及使用yum,但我尝试使用的每一种方式都导致了相同的消息。我最近发现了一些关于同一问题的其他问题,但这些问题都没有改变我的设置。
这是消息:
Loaded plugins: priorities, update-motd, upgrade-helper
Could not retrieve mirrorlist http://repo.us-east-1.amazonaws.com/latest/main/mirror.list error was
12: Timeout on http://repo.us-east-1.amazonaws.com/latest/main/mirror.list: (28, 'Connection timed out after 10001 milliseconds')
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: amzn-main/latest
我之前使用相同的教程做过同样的事情,没有遇到任何问题,但那是几个月前的事了。我不知道发生了什么变化,但我微薄的经验让我无法弄清楚。
【问题讨论】:
-
你试过 yum clean all 了吗?
-
我遇到了类似(相同?)的问题;我在工作的代理后面。为 HTTP 和 DNS(UPD 和 TCP)添加出站规则就可以了。
-
如果您的 VPC 上有一个 S3 终端节点,那么这可能会阻止 yum。请参阅下面的答案以获取修复。
-
GraduateOfAcmeU 你能解释一下“睡眠 60”是什么意思吗?
-
据我所知,AWS 讨厌它的客户
标签: amazon-web-services amazon-ec2 yum