「一部のインデックスファイルのダウンロードに失敗しました」というメッセージで更新に失敗しました。

「一部のインデックスファイルのダウンロードに失敗しました」というメッセージで更新に失敗しました。

次の操作を行うたびに、sudo apt-get updateこのエラーが発生します。

Hit:1 http://archive.canonical.com yakkety InRelease                                                                   
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                           
Hit:3 http://security.ubuntu.com/ubuntu yakkety-security InRelease                                                     
Hit:4 http://dl.google.com/linux/chrome/deb stable Release                                                             
Hit:6 http://ppa.launchpad.net/git-core/ppa/ubuntu yakkety InRelease                                           
Hit:7 http://ppa.launchpad.net/webupd8team/java/ubuntu yakkety InRelease                 
Err:8 http://ph.archive.ubuntu.com/ubuntu yakkety InRelease                         
  Could not connect to ph.archive.ubuntu.com:80 (202.90.159.172), connection timed out
Err:9 http://ph.archive.ubuntu.com/ubuntu yakkety-updates InRelease
  Unable to connect to ph.archive.ubuntu.com:http:
Err:10 http://ph.archive.ubuntu.com/ubuntu yakkety-backports InRelease
  Unable to connect to ph.archive.ubuntu.com:http:
Reading package lists... Done
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease  Could not connect to ph.archive.ubuntu.com:80 (202.90.159.172), connection timed out
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/yakkety-updates/InRelease  Unable to connect to ph.archive.ubuntu.com:http:
W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/yakkety-backports/InRelease  Unable to connect to ph.archive.ubuntu.com:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.

私はUbuntu 16.10 LTSを実行しており、昨日動作しました。

ベストアンサー1

エラーは明らかですが、URLでは接続できませんので、行って検索してph.archive.ubuntu.com コメント/etc/apt/ph.archive.ubuntu.com削除で防ぐ

cd /etc/apt/
sudo grep -ir 'ph.archive.ubuntu.com' ./

次に、そのファイルを含むファイルを開いて無効にします。

おすすめ記事