misc: Run apt update before installing packages

Sometimes the package repo may be out of date and installing required
packages can return 404 because the version in the stale database has
been removed.

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
Joe Groocock
2021-05-09 19:21:33 +01:00
parent e6408e187c
commit 7443dfac4c

View File

@@ -56,6 +56,7 @@ if [ -n "$YUM" ]; then
$sudo_command $YUM install -y graphviz || true # for debugging $sudo_command $YUM install -y graphviz || true # for debugging
fi fi
if [ -n "$APT" ]; then if [ -n "$APT" ]; then
$sudo_command $APT update -y
$sudo_command $APT install -y libvirt-dev || true $sudo_command $APT install -y libvirt-dev || true
$sudo_command $APT install -y libaugeas-dev || true $sudo_command $APT install -y libaugeas-dev || true
$sudo_command $APT install -y ruby ruby-dev || true $sudo_command $APT install -y ruby ruby-dev || true