Use apt-get instead of apt so debian/ubuntu don't complain
authorJavier Bértoli <jbertoli@curii.com>
Thu, 5 Aug 2021 18:08:51 +0000 (15:08 -0300)
committerJavier Bértoli <jbertoli@curii.com>
Thu, 5 Aug 2021 19:09:32 +0000 (16:09 -0300)
refs #17535
Arvados-DCO-1.1-Signed-off-by: Javier Bértoli <jbertoli@curii.com>

jenkins/packer-images/jenkins-image-common.sh

index 905cc115ce257b4fa3979b15eac2e056bacad85a..6f83c38cbbb735e67b653e9dffc5a4b5fc9a1f30 100755 (executable)
@@ -26,9 +26,9 @@ case ${OS_ID} in
     if [ ${OS_ID} = "debian" ]; then
       echo "deb http://deb.debian.org/debian buster-backports main" | sudo tee /etc/apt/sources.list.d/buster-backports.list
     fi
-    PREINSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt update"
-    INSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt install -y"
-    POSTINSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt autopurge -y"
+    PREINSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt-get update"
+    INSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt-get install -y"
+    POSTINSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt-get purge --autoremove -y"
     # SUFFIX packages with - to remove them
     # Remove unattended-upgrades so that it doesn't interfere with our nodes at startup
     PKGS="git netcat-traditional default-jdk unattended-upgrades-"