亞馬遜 ec2 ubuntu apt repos 中斷?

亞馬遜 ec2 ubuntu apt repos 中斷?

是不是發生了什麼事情託管在 Amazon S3 Archive 上的 Ubuntu 鏡像儲存庫

我收到從 Ubuntu S3 存檔返回的訊息“forbidden 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

這應該會將亞馬遜的伺服器從您的清單中刪除。

相關內容