done
if [ ! -z "$deps_to_install" ]; then
- LC_ALL=C DEBIAN_FRONTEND=noninteractive sudo apt-get install -y $deps_to_install
+ # This generates less output, but might fail entirely if at least one
+ # package has no candidates for installation.
+ #LC_ALL=C DEBIAN_FRONTEND=noninteractive sudo apt-get install -y $deps_to_install
+
+ for $dep in $deps_to_install; do
+ LC_ALL=C DEBIAN_FRONTEND=noninteractive sudo apt-get install -y $dep
+ done
fi
fi