亚马逊 ec2 ubuntu apt repos 中断了吗?

亚马逊 ec2 ubuntu apt repos 中断了吗?

发生了什么事吗Ubuntu 镜像存储库托管在 Amazon S3 存档上

我收到了 Ubuntu S3 存档返回的消息“禁止 403”

以前还可以用,最近就不行了,请指教

$ apt-get -y install ruby1.8
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
puppet-common : Depends: libxmlrpc-ruby
Depends: libopenssl-ruby
Depends: libshadow-ruby1.8 but it is not going to be installed
Depends: libaugeas-ruby1.8 but it is not going to be installed
Depends: facter (>= 1.5) but it is not going to be installed
Depends: facter (< 2.0) but it is not going to be installed
Recommends: debconf-utils but it is not going to be installed
ruby1.8 : Depends: libruby1.8 (= 1.8.7.352-2ubuntu1.4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Err http://us-east-1.ec2.archive.ubuntu.com.s3.amazonaws.com/ubuntu/ precise/main augeas-lenses all 0.10.0-0ubuntu4
403 Forbidden
.............
............

答案1

Amazon 存储库仅供 Amazon 注册系统使用。如果您不使用 Amazon EC2 服务(其农场之一),则无法使用它们,因此它会拒绝任何试图使用它们的人的访问。

将您的存储库更改为官方的存储库http://archive.ubuntu.com/,您就可以了:

sudo sed -i 's/\.s3\.amazonaws\.com//ig' /etc/apt/sources.list{,d/*.list}
sudo apt-get update

这应该会将亚马逊的服务器从您的列表中删除。

相关内容