Ubuntu raring apt-get 更新在 AWS/EC2 上失败了吗?

Ubuntu raring apt-get 更新在 AWS/EC2 上失败了吗?

我正在使用 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 运行 starcluster。)

我的实例位于 中us-west-2a,安全组似乎允许所需的连接。这是因为 raring 不再受支持吗?有人遇到过这种情况吗?除了在 中安装我的软件包之外,还有其他解决方案吗/usr/local

答案1

Ubuntu 13.04 不再受支持,repo 镜像已删除了软件包 - 因此您会看到 404 错误。

切换到old-releases.ubuntu.com镜像并升级到支持的版本,如文档中所述这里

相关内容