From c6b66e70a0ef59aabf88a7e9e8581fe7c947fa6d Mon Sep 17 00:00:00 2001 From: ronivay Date: Mon, 6 Apr 2020 19:55:19 +0300 Subject: [PATCH] If running ubuntu, make sure we have universe repository enabled so package installation doesn't fail --- xo-install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xo-install.sh b/xo-install.sh index 57a40cb..bec8051 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -139,6 +139,13 @@ function InstallDependenciesDebian { # 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 -ne "${PROGRESS} Running apt-get update" apt-get update >/dev/null