From eabee70556eebb5c5fdab689d12cf97395697eab Mon Sep 17 00:00:00 2001 From: Matthew Andres Moreno Date: Fri, 8 Dec 2023 17:10:02 -0500 Subject: [PATCH] Replace apt-get with aptitude --- Dockerfile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8190ae8cb1..129c714310 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,26 +23,31 @@ RUN \ # xvfb nonsense adapted from https://github.com/samgiles/docker-xvfb # remove -backports, -updates, -proposed, -security repositories # looks like we have to grab libxxhash0 from -updates now +# use aptitude to fix intermittent install failure with apt-get RUN \ apt-get update -y \ && \ - apt-get install --no-install-recommends libxxhash0 \ + apt-get install -y aptitude \ && \ - apt-get clean \ + aptitude update -y \ + && \ + aptitude install --without-recommends libxxhash0 \ + && \ + aptitude clean \ && \ rm -rf /var/lib/apt/lists/* \ && \ - apt-get update -y \ + aptitude update -y \ && \ - apt-get install -y software-properties-common \ + aptitude install -y software-properties-common \ && \ add-apt-repository -y ppa:ubuntu-toolchain-r/test \ && \ add-apt-repository -y ppa:deadsnakes/ppa \ && \ - apt-get update -y \ + aptitude update -y \ && \ - apt-get install --no-install-recommends --allow-downgrades -y \ + aptitude install --without-recommends --allow-downgrades -y \ build-essential \ dpkg-dev \ g++-11 \