3rd try - resolve issues with upstream ubuntu apt repo not having packages
Change-Id: Ic0806f19678ffb394d93b368861c579c198cc3b2
diff --git a/packer/provision/baseline.sh b/packer/provision/baseline.sh
index 6de1527..d094bbb 100644
--- a/packer/provision/baseline.sh
+++ b/packer/provision/baseline.sh
@@ -214,6 +214,13 @@
echo "---> Updating operating system"
+ # added 2019-09-20 as apt-add-repository and software-properties-common weren't working
+ cat <<EOF >/etc/apt/sources.list.d/packer.list
+# created by packer
+deb http://us.archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse
+
+EOF
+
# remove these as the fix seems to be broken now? zdw, 2019-09-20
# # Change made 2018-07-09 by zdw
# # per discussion on #lf-releng, the upstream Ubuntu image changed to be
@@ -224,11 +231,12 @@
# apt-get install -y software-properties-common
# add additional repositories
- add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
+ # add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
echo "---> Installing base packages"
apt-get clean
apt-get update -m
+ apt-get upgrade -m
apt-get dist-upgrade -m
apt-get update -m