Airskiff: update packages prior to delete

Previously, airskiff's 000-install-packages script added the docker
repo, then deleted stale docker packages, then updated the apt database.
This change moves the apt update before the delete, so that apt-get
knows about the packages it's being asked to delete.  Without this in
place it'll fail on a fresh VM that doesn't know about the docker repo.

Change-Id: If009d8371c3ff49e4ed50599d8d62072868a84bf
This commit is contained in:
Matt McEuen 2019-04-26 17:44:57 -05:00
parent 855a83b2ee
commit 0ecbcf162b
1 changed files with 1 additions and 1 deletions

View File

@ -23,13 +23,13 @@ sudo apt-add-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \ $(lsb_release -cs) \
stable" stable"
sudo apt-get update
# Purge Docker and install Docker CE # Purge Docker and install Docker CE
sudo systemctl unmask docker.service sudo systemctl unmask docker.service
sudo apt-get remove --no-install-recommends -y docker docker-engine docker.io sudo apt-get remove --no-install-recommends -y docker docker-engine docker.io
# TODO(drewwalters96): Update to Docker 18.09 when supported by Minikube. # TODO(drewwalters96): Update to Docker 18.09 when supported by Minikube.
sudo apt-get update
sudo apt-get install --allow-downgrades --no-install-recommends -y \ sudo apt-get install --allow-downgrades --no-install-recommends -y \
apparmor \ apparmor \
ca-certificates \ ca-certificates \