在AWS / EC2上,Ubuntu提交apt-get update失败?

我正在使用StarCluster AMI,并试图将我的软件安装到它上面。 但是,我遇到了apt-get 。 我尝试安装一个包:

 (! 141)-> sudo apt-get install postgresql-common Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: postgresql-client-common The following NEW packages will be installed: postgresql-client-common postgresql-common 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 132 kB of archives. After this operation, 634 kB of additional disk space will be used. Do you want to continue [Y/n]? Y WARNING: The following packages cannot be authenticated! postgresql-client-common postgresql-common Install these packages without verification [y/N]? y Err http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ raring/main postgresql-client-common all 140 404 Not Found [IP: 91.189.91.24 80] Err http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ raring/main postgresql-common all 140 404 Not Found [IP: 91.189.91.24 80] Failed to fetch http://us-west-2.ec2.archive.ubuntu.com/ubuntu/pool/main/p/postgresql-common/postgresql-client-common_140_all.deb 404 Not Found [IP: 91.189.91.24 80] Failed to fetch http://us-west-2.ec2.archive.ubuntu.com/ubuntu/pool/main/p/postgresql-common/postgresql-common_140_all.deb 404 Not Found [IP: 91.189.91.24 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

但是失败了 我在某些方面与存储库不同步:

 (! 127)-> sudo apt-get update Hit http://archive.cloudera.com squeeze-cdh3u5 Release.gpg Ign http://security.ubuntu.com raring-security Release.gpg Hit http://archive.cloudera.com squeeze-cdh3u5 Release Ign http://us-west-2.ec2.archive.ubuntu.com raring Release.gpg Hit http://ppa.launchpad.net raring Release.gpg Ign http://security.ubuntu.com raring-security Release Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates Release.gpg Hit http://ppa.launchpad.net raring Release.gpg Hit http://archive.cloudera.com squeeze-cdh3u5/contrib Sources Ign http://security.ubuntu.com raring-security/main Sources/DiffIndex Ign http://us-west-2.ec2.archive.ubuntu.com raring Release Hit http://archive.cloudera.com squeeze-cdh3u5/contrib amd64 Packages Hit http://ppa.launchpad.net raring Release.gpg Ign http://security.ubuntu.com raring-security/universe Sources/DiffIndex Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates Release Hit http://ppa.launchpad.net raring Release Ign http://security.ubuntu.com raring-security/main amd64 Packages/DiffIndex Ign http://us-west-2.ec2.archive.ubuntu.com raring/main Sources/DiffIndex Hit http://ppa.launchpad.net raring Release Ign http://security.ubuntu.com raring-security/universe amd64 Packages/DiffIndex Ign http://us-west-2.ec2.archive.ubuntu.com raring/universe Sources/DiffIndex Hit http://ppa.launchpad.net raring Release Ign http://us-west-2.ec2.archive.ubuntu.com raring/main amd64 Packages/DiffIndex Hit http://ppa.launchpad.net raring/main Sources Ign http://us-west-2.ec2.archive.ubuntu.com raring/universe amd64 Packages/DiffIndex Hit http://ppa.launchpad.net raring/main amd64 Packages Ign http://archive.cloudera.com squeeze-cdh3u5/contrib Translation-en_US Ign http://archive.cloudera.com squeeze-cdh3u5/contrib Translation-en Hit http://ppa.launchpad.net raring/main Sources Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates/main Sources/DiffIndex Hit http://ppa.launchpad.net raring/main amd64 Packages Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates/universe Sources/DiffIndex Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates/main amd64 Packages/DiffIndex Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates/universe amd64 Packages/DiffIndex Hit http://ppa.launchpad.net raring/main Sources Hit http://ppa.launchpad.net raring/main amd64 Packages Ign http://security.ubuntu.com raring-security/main Translation-en_US Ign http://security.ubuntu.com raring-security/main Translation-en Ign http://ppa.launchpad.net raring/main Translation-en_US Ign http://security.ubuntu.com raring-security/universe Translation-en_US Ign http://ppa.launchpad.net raring/main Translation-en Ign http://security.ubuntu.com raring-security/universe Translation-en Ign http://ppa.launchpad.net raring/main Translation-en_US Err http://security.ubuntu.com raring-security/main Sources 404 Not Found [IP: 91.189.92.200 80] Ign http://ppa.launchpad.net raring/main Translation-en Err http://security.ubuntu.com raring-security/universe Sources 404 Not Found [IP: 91.189.92.200 80] Ign http://ppa.launchpad.net raring/main Translation-en_US Err http://security.ubuntu.com raring-security/main amd64 Packages 404 Not Found [IP: 91.189.92.200 80] Ign http://ppa.launchpad.net raring/main Translation-en Err http://security.ubuntu.com raring-security/universe amd64 Packages 404 Not Found [IP: 91.189.92.200 80] Ign http://us-west-2.ec2.archive.ubuntu.com raring/main Translation-en_US Ign http://us-west-2.ec2.archive.ubuntu.com raring/main Translation-en Ign http://us-west-2.ec2.archive.ubuntu.com raring/universe Translation-en_US Ign http://us-west-2.ec2.archive.ubuntu.com raring/universe Translation-en Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates/main Translation-en_US Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates/main Translation-en Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates/universe Translation-en_US Ign http://us-west-2.ec2.archive.ubuntu.com raring-updates/universe Translation-en Err http://us-west-2.ec2.archive.ubuntu.com raring/main Sources 404 Not Found [IP: 91.189.92.200 80] Err http://us-west-2.ec2.archive.ubuntu.com raring/universe Sources 404 Not Found [IP: 91.189.92.200 80] Err http://us-west-2.ec2.archive.ubuntu.com raring/main amd64 Packages 404 Not Found [IP: 91.189.92.200 80] Err http://us-west-2.ec2.archive.ubuntu.com raring/universe amd64 Packages 404 Not Found [IP: 91.189.92.200 80] Err http://us-west-2.ec2.archive.ubuntu.com raring-updates/main Sources 404 Not Found [IP: 91.189.92.200 80] Err http://us-west-2.ec2.archive.ubuntu.com raring-updates/universe Sources 404 Not Found [IP: 91.189.92.200 80] Err http://us-west-2.ec2.archive.ubuntu.com raring-updates/main amd64 Packages 404 Not Found [IP: 91.189.92.200 80] Err http://us-west-2.ec2.archive.ubuntu.com raring-updates/universe amd64 Packages 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/source/Sources 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/source/Sources 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://us-west-2.ec2.archive.ubuntu.com/ubuntu/dists/raring/main/source/Sources 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://us-west-2.ec2.archive.ubuntu.com/ubuntu/dists/raring/universe/source/Sources 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://us-west-2.ec2.archive.ubuntu.com/ubuntu/dists/raring/main/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://us-west-2.ec2.archive.ubuntu.com/ubuntu/dists/raring/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://us-west-2.ec2.archive.ubuntu.com/ubuntu/dists/raring-updates/main/source/Sources 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://us-west-2.ec2.archive.ubuntu.com/ubuntu/dists/raring-updates/universe/source/Sources 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://us-west-2.ec2.archive.ubuntu.com/ubuntu/dists/raring-updates/main/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://us-west-2.ec2.archive.ubuntu.com/ubuntu/dists/raring-updates/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80] E: Some index files failed to download. They have been ignored, or old ones used instead. 

但是这些服务器是可达的:

 (! 129)-> ping 91.189.92.200 PING 91.189.92.200 (91.189.92.200) 56(84) bytes of data. 64 bytes from 91.189.92.200: icmp_req=1 ttl=46 time=153 ms 64 bytes from 91.189.92.200: icmp_req=2 ttl=46 time=153 ms 64 bytes from 91.189.92.200: icmp_req=3 ttl=46 time=148 ms ^C --- 91.189.92.200 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 148.362/151.713/153.471/2.413 ms 

和我的DNS正在工作:

 (! 156)-> host us-west-2.ec2.archive.ubuntu.com us-west-2.ec2.archive.ubuntu.com is an alias for archive.ubuntu.com. archive.ubuntu.com has address 91.189.91.24 archive.ubuntu.com has address 91.189.92.200 archive.ubuntu.com has address 91.189.92.201 archive.ubuntu.com has address 91.189.88.149 archive.ubuntu.com has address 91.189.91.13 archive.ubuntu.com has address 91.189.91.15 archive.ubuntu.com has address 91.189.91.23 archive.ubuntu.com has IPv6 address 2001:67c:1360:8c01::18 archive.ubuntu.com has IPv6 address 2001:67c:1360:8c01::19 

以供参考:

 (! 145)-> lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 13.04 Release: 13.04 Codename: raring 

万一它很重要,形象是从以下几点开始的:

 starcluster start -o -s 1 -I m3.medium -m ami-80bedfb0 imagehost 

(嗯,确切地说,我是在我的AWS控制台中以更大的音量启动它,将它保存为图像,然后用我的ami运行星群。)

我的实例在us-west-2a ,安全组似乎允许所需的连接。 这是因为不再支持raring吗? 有没有人遇到这个和/或有解决办法,而不是在/usr/local安装我的软件包?

Ubuntu 13.04不再支持,回购镜像已经丢弃了软件包 – 因此你看到的404错误。

切换到old-releases.ubuntu.com镜像并升级到受支持的版本,详见此处的文档。