From 2d44ba7d4cd1bab74788d0cb53ae7d641b78e37d Mon Sep 17 00:00:00 2001 From: wangsongbo Date: Thu, 21 Dec 2017 10:06:53 +0800 Subject: [PATCH] install-deps.sh: only download mirrored package index E: Failed to fetch http://mirror.cs.uchicago.edu/ubuntu-toolchain-r/dists/xenial/main/binary-i386/Packages 404 Not Found E: Failed to fetch http://mirror.yandex.ru/mirrors/launchpad/ubuntu-toolchain-r/dists/xenial/main/i18n/Translation-en 404 Not Found [IP: 213.180.204.183 80] E: Some index files failed to download. They have been ignored, or old ones used instead. On Ubuntu amd64 installations, i386 is enabled as an additional architecture by default. apt & co. expect repositories to provide all configured architectures, which causes the error above. Signed-off-by: Songbo Wang --- install-deps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-deps.sh b/install-deps.sh index 0e86a9114dc2b..670f1fd254616 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -40,8 +40,8 @@ function ensure_decent_gcc_on_deb { if [ ! -f /usr/bin/g++-${new} ]; then $SUDO tee /etc/apt/sources.list.d/ubuntu-toolchain-r.list <