Fix add-apt-repository in baseline.sh

Change-Id: I2cf200a5820e4212e220c969eeffaac87dcfc1c6
diff --git a/packer/provision/baseline.sh b/packer/provision/baseline.sh
index f831c66..98f584d 100644
--- a/packer/provision/baseline.sh
+++ b/packer/provision/baseline.sh
@@ -230,6 +230,7 @@
 
     apt-get update -m
     apt-get -f install || true # attempt to fix broken packages
+    apt-get install -y iso-codes python3-software-properties isoquery software-properties-common apt-transport-https
 
     # add additional repositories
     add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
@@ -240,8 +241,6 @@
     apt-get upgrade -m
     apt-get dist-upgrade -m
 
-    apt-get install -y iso-codes python3-software-properties isoquery software-properties-common apt-transport-https
-
     ensure_ubuntu_install unzip xz-utils puppet git libxml-xpath-perl
 
     echo "---> Configuring Corretto JDK Distribution"