Skip to content

Commit

Permalink
Probably fix universe repo missing on some Ubuntu versions
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Oct 8, 2018
1 parent 5b7f86d commit 28be8b4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# License and version
SERIAL=GPL
KEY=GPL
VER=6.0.12
VER=6.0.13
vm_version=6

# Currently supported systems:
Expand Down Expand Up @@ -702,8 +702,13 @@ install_virtualmin_release () {
run_ok "apt-get update" "Downloading repository metadata"
# Make sure universe repos are available
# XXX Test to make sure this run_ok syntax works as expected (with single quotes inside double)
run_ok "sed -ie '/backports/b; s/#*[ ]*deb \\(.*\\) universe$/deb \\1 universe/' /etc/apt/sources.list" \
"Enabling universe repositories, if not already available"
if [ -x "/bin/add-apt-repository" ] || [ -x "/usr/bin/add-apt-repository" ]; then
run_ok "add-apt-repository universe" \
"Enabling universe repositories, if not already available"
else
run_ok "sed -ie '/backports/b; s/#*[ ]*deb \\(.*\\) universe$/deb \\1 universe/' /etc/apt/sources.list" \
"Enabling universe repositories, if not already available"
fi
# XXX Is this still enabled by default on Debian/Ubuntu systems?
run_ok "sed -ie 's/^deb cdrom:/#deb cdrom:/' /etc/apt/sources.list" "Disabling cdrom: repositories"
install="DEBIAN_FRONTEND='noninteractive' /usr/bin/apt-get --quiet --assume-yes --install-recommends -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o Dpkg::Pre-Install-Pkgs::='/usr/sbin/dpkg-preconfigure --apt' install"
Expand Down

0 comments on commit 28be8b4

Please sign in to comment.