Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 19c5016

Browse files
authored
Add apt update to all docker install scripts (#13287)
1 parent c1327f3 commit 19c5016

16 files changed

Lines changed: 21 additions & 10 deletions

ci/docker/install/ubuntu_caffe.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# under the License.
1919
set -ex
2020

21+
apt-get update || true
2122
apt-get install -y \
2223
libgflags-dev \
2324
libgoogle-glog-dev \

ci/docker/install/ubuntu_clang.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
set -ex
2424
# Install clang 3.9 (the same version as in XCode 8.*) and 6.0 (latest major release)
25+
apt-get update || true
2526
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
2627
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.9 main" && \
2728
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" && \
28-
apt-get update && \
2929
apt-get install -y clang-3.9 clang-6.0 && \
3030
clang-3.9 --version && \
3131
clang-6.0 --version

ci/docker/install/ubuntu_core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# the whole docker cache for the image
2222

2323
set -ex
24-
apt-get update
24+
apt-get update || true
2525
apt-get install -y \
2626
apt-transport-https \
2727
build-essential \

ci/docker/install/ubuntu_docs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
set -ex
2424
# Install dependencies
2525
echo 'Installing dependencies...'
26+
apt-get update || true
2627
apt-get install -y \
2728
doxygen \
2829
pandoc

ci/docker/install/ubuntu_emscripten.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
set -ex
2727

28+
apt-get update || true
2829
apt-get -y install nodejs
2930

3031
git clone -b 1.38.6 https://github.com/kripken/emscripten.git

ci/docker/install/ubuntu_llvm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ echo deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main\
2323
>> /etc/apt/sources.list.d/llvm.list
2424

2525
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
26-
apt-get update && apt-get install -y --force-yes llvm-5.0
26+
apt-get update || true
27+
apt-get install -y --force-yes llvm-5.0

ci/docker/install/ubuntu_nightly_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set -ex
2525
# Adding ppas frequently fails due to busy gpg servers, retry 5 times with 5 minute delays.
2626
for i in 1 2 3 4 5; do add-apt-repository -y ppa:ubuntu-toolchain-r/test && break || sleep 300; done
2727

28-
apt-get update
28+
apt-get update || true
2929
apt-get -y install time
3030

3131
# Install for RAT License Check Nightly Test

ci/docker/install/ubuntu_npm_blc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
set -ex
2424
echo 'Installing npm...'
25-
apt-get update
25+
apt-get update || true
2626
apt-get install -y npm
2727

2828
echo "Obtaining NodeJS version 8.x"

ci/docker/install/ubuntu_nvidia.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
# under the License.
1919

2020
set -ex
21+
apt-get update || true
2122
apt install -y software-properties-common
2223

2324
# Adding ppas frequently fails due to busy gpg servers, retry 5 times with 5 minute delays.
2425
for i in 1 2 3 4 5; do add-apt-repository -y ppa:graphics-drivers && break || sleep 300; done
2526

2627
# Retrieve ppa:graphics-drivers and install nvidia-drivers.
2728
# Note: DEBIAN_FRONTEND required to skip the interactive setup steps
28-
apt update
29+
apt-get update || true
2930
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends cuda-9-1

ci/docker/install/ubuntu_onnx.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ set -e
2727
set -x
2828

2929
echo "Installing libprotobuf-dev and protobuf-compiler ..."
30+
apt-get update || true
3031
apt-get install -y libprotobuf-dev protobuf-compiler
3132

3233
echo "Installing pytest, pytest-cov, protobuf, Pillow, ONNX and tabulate ..."

0 commit comments

Comments
 (0)