在使用北欧数据中心的14.04LTS Azrue创建的新计算机上,apt-get因以下问题而失败:
azureuser@x:~$ sudo apt-get update
Err http://azure.archive.ubuntu.com trusty InRelease
Err http://azure.archive.ubuntu.com trusty-updates InRelease
Err http://azure.archive.ubuntu.com trusty Release.gpg
Unable to connect to azure.archive.ubuntu.com:http:
Err http://azure.archive.ubuntu.com trusty-updates Release.gpg
Unable to connect to azure.archive.ubuntu.com:http:
Ign http://security.ubuntu.com trusty-security InRelease
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://security.ubuntu.com trusty-security Release
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Reading package lists... Done
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Unable to connect to azure.archive.ubuntu.com:http:
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Unable to connect to azure.archive.ubuntu.com:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
我也创建了另一台机器,同样的问题......如何最好地解决这个问题?似乎Azure Ubuntu镜像存在问题......
答案 0 :(得分:3)
这似乎是Ubuntu azure repo的暂时问题。当我第一次测试它时,它已经关闭,但它现在可用,我对新VM没有任何问题。尝试再次运行sudo apt-get update
。
答案 1 :(得分:0)
我遇到了同样的问题。这似乎have been a problem with Ubuntu但它仍然影响Azure上14.04图像的某些版本。我建议你使用更新版本的Ubuntu图像,如
b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu_DAILY_BUILD-trusty-14_04_3-LTS-amd64-server-20151104-en-us-30GB
而不是像这样的老年人:
b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_1-LTS-amd64-server-20140927-en-us-30GB
要查看Azure上可用的图像:
azure vm image list | grep Ubuntu
答案 2 :(得分:0)
我们遇到了同样的问题,但它与安全性有关。请务必检查您的网络安全组(NSG)规则。它需要允许端口80上的出站流量与azure.archive.ubuntu.com进行通信。