web-dev-qa-db-ja.com

apt-get updateおよびapt-get install mysql-serverの実行エラー

昨日から走ろうとしています

apt-get update

私はEC2で作成しているUbuntuインスタンスで失敗しました。

具体的には、これらのエラーが発生しています:

Ign http://security.ubuntu.com maverick-security/main AMD64 Packages
Ign http://security.ubuntu.com maverick-security/universe AMD64 Packages
Ign http://security.ubuntu.com maverick-security/multiverse AMD64 Packages
Err http://security.ubuntu.com maverick-security/main Sources
  404  Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com maverick-security/universe Sources
  404  Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com maverick-security/main AMD64 Packages
  404  Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com maverick-security/universe AMD64 Packages
  404  Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com maverick-security/multiverse AMD64 Packages
  404  Not Found [IP: 91.189.92.190 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/main/source/Sources.gz  404  Not Found [IP: 91.189.92.190 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/source/Sources.gz  404  Not Found [IP: 91.189.92.190 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/main/binary-AMD64/Packages.gz  404  Not Found [IP: 91.189.92.190 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/binary-AMD64/Packages.gz  404  Not Found [IP: 91.189.92.190 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/multiverse/binary-AMD64/Packages.gz  404  Not Found [IP: 91.189.92.190 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
root@ip-10-168-230-63:/etc/apt# 

また、mysql-serverをインストールしようとすると、エラーが発生します。

root@ip-10-168-230-63:/etc/apt# apt-get install mysql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libhtml-template-Perl mysql-server-5.1 mysql-server-core-5.1
Suggested packages:
  libipc-sharedcache-Perl tinyca mailx
The following NEW packages will be installed:
  libhtml-template-Perl mysql-server mysql-server-5.1 mysql-server-core-5.1
0 upgraded, 4 newly installed, 0 to remove and 81 not upgraded.
Need to get 12.1MB/12.2MB of archives.
After this operation, 29.5MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main mysql-server-core-5.1 AMD64 5.1.61-0ubuntu0.10.10.1
  403  Forbidden
Err http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main mysql-server-5.1 AMD64 5.1.61-0ubuntu0.10.10.1
  403  Forbidden
Err http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ maverick-updates/main mysql-server all 5.1.61-0ubuntu0.10.10.1
  403  Forbidden
Failed to fetch http://us-west-1.ec2.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.1/mysql-server-core-5.1_5.1.61-0ubuntu0.10.10.1_AMD64.deb  403  Forbidden
Failed to fetch http://us-west-1.ec2.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.1/mysql-server-5.1_5.1.61-0ubuntu0.10.10.1_AMD64.deb  403  Forbidden
Failed to fetch http://us-west-1.ec2.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.1/mysql-server_5.1.61-0ubuntu0.10.10.1_all.deb  403  Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@ip-10-168-230-63:/etc/apt# 

走った

apt-get update --fix-missing

運もなく。

何か案は?

AWS EC2で実行されているUbuntu Linuxインスタンスでこれらのタスクを何回も問題なく実行しました。よろしくお願いします!

10
carlos

修正は、これらの行をsources.listに追加することでした。

deb http://us.archive.ubuntu.com/ubuntu lucid main multiverse universe
deb http://us.archive.ubuntu.com/ubuntu lucid-security main multiverse universe
deb http://us.archive.ubuntu.com/ubuntu lucid-updates main multiverse universe

返信いただきありがとうございます。

6
carlos

これは 既知のバグ Amazon S3でした。これを修正するには、Sudo apt-get updateを実行するだけです

12
Anuj Gupta

Ubuntu 10.10 Maverick Meerkatは2012年4月10日にサポート終了になりました。つまり、これ以上の更新はなく(セキュリティ修正もありません)、パッケージアーカイブはarchive.ubuntu.comからold-releases.ubuntu.comに移動します。これが表示されているエラーの理由です。

/etc/apt/sources.listおよび パッケージソースを修正 を編集します。 us-west-1.ec2プレフィックスも削除する必要があることに注意してください。EOLリリース専用のEC2パッケージサーバーはありません。

6
kynan

このアドバイス、および「アーカイブ」が「古いリリース」に変更されたことを言及した他のメモにより、次のスニペットが前進に役立ちました。

Sudo sed 's@http://archive\.ubuntu\.com/@http://old-releases.ubuntu.com/@' -i /etc/apt/sources.list
Sudo apt-get update
Sudo apt-get upgrade

その後、必要なパッケージをインストールできました(私の場合はphp5-sqlite)

3
Tyler Mulligan

セキュリティグループ->送信

*   ALL Traffic ALL     ALL     0.0.0.0/0   Allow

Google.comなどの外部サーバーに接続する場合、または更新する場合でも、Outboundを許可してください-Sudo apt-get update

AWSフロントエンドgotoセキュリティグループ->アウトバウンドを使用してアウトバウンドを許可できます

AWSインスタンスに適切なグループを選択していることを確認してください

0
Manu R S

追加のソースを追加してみてください

gksu gedit /etc/apt/sources.list

またはtaskselを介してLAMPをインストールします

Sudo tasksel install lamp-server
0
Hany Alsamman