If running ubuntu, make sure we have universe repository enabled so package installation doesn't fail

This commit is contained in:
ronivay
2020-04-06 19:55:19 +03:00
parent 78bcd027a5
commit c6b66e70a0

View File

@@ -139,6 +139,13 @@ function InstallDependenciesDebian {
# Install necessary dependencies for XO build # Install necessary dependencies for XO build
if [[ $OSVERSION =~ (16|18) ]]; then
echo -ne "${PROGRESS} OS Ubuntu so making sure universe repository is enabled"
add-apt-repository universe >/dev/null
echo -e "\r${OK} OS Ubuntu so making sure universe repository is enabled"
echo
fi
echo echo
echo -ne "${PROGRESS} Running apt-get update" echo -ne "${PROGRESS} Running apt-get update"
apt-get update >/dev/null apt-get update >/dev/null