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

Commit 03ebd0f

Browse files
committed
Force APT cache update before executing install
1 parent 339e085 commit 03ebd0f

17 files changed

+22
-9
lines changed

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
# the whole docker cache for the image
2222

2323
set -ex
24+
25+
apt-get update || true
2426
# Install clang 3.9 (the same version as in XCode 8.*) and 6.0 (latest major release)
2527
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
2628
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.9 main" && \

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_gcc8.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919

2020
sudo add-apt-repository ppa:jonathonf/gcc-8.0
2121
sudo add-apt-repository ppa:jonathonf/gcc-7.3
22-
sudo apt-get update
22+
sudo apt-get update || true
2323
sudo apt-get install -y gcc-8 g++-8

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
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.

0 commit comments

Comments
 (0)