Handle 'add-apt-repository contrib' on Ubuntu 18.04 properly.
authorWard Vandewege <ward@curii.com>
Tue, 15 Mar 2022 16:46:13 +0000 (12:46 -0400)
committerWard Vandewege <ward@curii.com>
Tue, 15 Mar 2022 17:47:46 +0000 (13:47 -0400)
refs #18772

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

tools/compute-images/scripts/base.sh

index 5ee52174ae1398b70dfceb7dbb6e435e89720457..42fe0d034069e99afbf2bd059b45c51e46b15305 100644 (file)
@@ -191,7 +191,8 @@ if [ "$NVIDIA_GPU_SUPPORT" == "1" ]; then
   $SUDO apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/$DIST/x86_64/7fa2af80.pub
   $SUDO apt-get -y install software-properties-common
   $SUDO add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/$DIST/x86_64/ /"
-  $SUDO add-apt-repository contrib
+  # Ubuntu 18.04's add-apt-repository does not understand 'contrib'
+  $SUDO add-apt-repository contrib || true
   $SUDO apt-get update
   $SUDO apt-get -y install cuda