Назад | Перейти на главную страницу

Обновление Ubuntu raring apt-get не работает на AWS / EC2?

Я работаю с AMI StarCluster и пытаюсь установить на него свое программное обеспечение. Однако у меня проблемы с 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 с большим объемом, сохранил его как образ, а затем запустил starcluster с моим ami.)

Мой экземпляр находится в us-west-2a, и появляется группа безопасности, разрешающая необходимые подключения. Это потому, что раринг больше не поддерживается? Кто-нибудь сталкивался с этим и / или есть ли другое решение, кроме установки моих пакетов в /usr/local?

Ubuntu 13.04 больше не поддерживается, зеркала репо сбросили пакеты - таким образом, вы видите ошибку 404.

Переключитесь на old-releases.ubuntu.com зеркало и обновление до поддерживаемой версии, как подробно описано в документации Вот.