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

Force APT cache update before executing install #13285

Merged
merged 1 commit into from
Nov 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_caffe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# under the License.
set -ex

apt-get update || true
apt-get install -y \
libgflags-dev \
libgoogle-glog-dev \
Expand Down
2 changes: 2 additions & 0 deletions ci/docker/install/ubuntu_clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
# the whole docker cache for the image

set -ex

apt-get update || true
# Install clang 3.9 (the same version as in XCode 8.*) and 6.0 (latest major release)
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.9 main" && \
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# the whole docker cache for the image

set -ex
apt-get update
apt-get update || true
apt-get install -y \
apt-transport-https \
build-essential \
Expand Down
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
set -ex
# Install dependencies
echo 'Installing dependencies...'
apt-get update || true
apt-get install -y \
doxygen \
pandoc
Expand Down
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_emscripten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

set -ex

apt-get update || true
apt-get -y install nodejs

git clone -b 1.38.6 https://github.com/kripken/emscripten.git
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_gcc8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@

sudo add-apt-repository ppa:jonathonf/gcc-8.0
sudo add-apt-repository ppa:jonathonf/gcc-7.3
sudo apt-get update
sudo apt-get update || true
sudo apt-get install -y gcc-8 g++-8
3 changes: 2 additions & 1 deletion ci/docker/install/ubuntu_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ echo deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main\
>> /etc/apt/sources.list.d/llvm.list

wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
apt-get update && apt-get install -y --force-yes llvm-5.0
apt-get update || true
apt-get install -y --force-yes llvm-5.0
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_nightly_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set -ex
# Adding ppas frequently fails due to busy gpg servers, retry 5 times with 5 minute delays.
for i in 1 2 3 4 5; do add-apt-repository -y ppa:ubuntu-toolchain-r/test && break || sleep 300; done

apt-get update
apt-get update || true
apt-get -y install time

# Install for RAT License Check Nightly Test
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_npm_blc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

set -ex
echo 'Installing npm...'
apt-get update
apt-get update || true
apt-get install -y npm

echo "Obtaining NodeJS version 8.x"
Expand Down
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_nvidia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# under the License.

set -ex
apt-get update || true
apt install -y software-properties-common

# Adding ppas frequently fails due to busy gpg servers, retry 5 times with 5 minute delays.
Expand Down
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_onnx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ set -e
set -x

echo "Installing libprotobuf-dev and protobuf-compiler ..."
apt-get update || true
apt-get install -y libprotobuf-dev protobuf-compiler

echo "Installing pytest, pytest-cov, protobuf, Pillow, ONNX and tabulate ..."
Expand Down
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_perl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@

set -ex
# install libraries for mxnet's perl package on ubuntu
apt-get update || true
apt-get install -y libmouse-perl pdl cpanminus swig libgraphviz-perl
cpanm -q Function::Parameters Hash::Ordered PDL::CCS
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

set -ex
# install libraries for mxnet's python package on ubuntu
apt-get update || true
apt-get install -y python-dev python3-dev virtualenv wget

# the version of the pip shipped with ubuntu may be too lower, install a recent version here
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_r.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ apt-key add r.gpg
# Installing the latest version (3.3+) that is compatible with MXNet
add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'

apt-get update
apt-get update || true
apt-get install -y --allow-unauthenticated \
libcairo2-dev \
libssl-dev \
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_rat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
set -ex

echo "Install dependencies"
apt-get update
apt-get update || true
apt-get install -y subversion maven openjdk-8-jdk openjdk-8-jre

echo "download RAT"
Expand Down
6 changes: 4 additions & 2 deletions ci/docker/install/ubuntu_scala.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ set -ex
cd "$(dirname "$0")"
# install libraries for mxnet's scala package on ubuntu
echo 'Installing Scala...'
apt-get update || true
apt-get install -y software-properties-common
apt-get update
apt-get update || true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double checking. Is the reason we do two updates here that software-properities-common adds some new repos for apt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct

apt-get install -y openjdk-8-jdk
apt-get install -y openjdk-8-jre

Expand All @@ -34,7 +35,8 @@ echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/
#apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
#apt-key adv --keyserver keys.gnupg.net --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
apt-key add sbt.gpg
apt-get update && apt-get install -y \
apt-get update || true
apt-get install -y \
maven \
sbt \
scala
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_tutorials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# the whole docker cache for the image

set -ex
apt-get update || true
apt-get install graphviz python-opencv
pip2 install jupyter matplotlib Pillow opencv-python scikit-learn graphviz tqdm
pip3 install jupyter matplotlib Pillow opencv-python scikit-learn graphviz tqdm