summaryrefslogtreecommitdiffstats
path: root/packaging/installer
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2020-04-03 15:27:16 +1000
committerGitHub <noreply@github.com>2020-04-03 15:27:16 +1000
commitd0db816d2c3c8f90311154b4a6bcf189b2922f26 (patch)
treec321d6a6f21d170197fdd3d5c982ff0c9b16686a /packaging/installer
parentcbe822b1b60c1b8eb2436c1c8d1ba409c96f98fe (diff)
Fix Debian 8 (jessie) support (#8590)
Diffstat (limited to 'packaging/installer')
-rwxr-xr-xpackaging/installer/install-required-packages.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/installer/install-required-packages.sh b/packaging/installer/install-required-packages.sh
index 8c8a3a8804..5156ae56dc 100755
--- a/packaging/installer/install-required-packages.sh
+++ b/packaging/installer/install-required-packages.sh
@@ -1280,6 +1280,12 @@ install_apt_get() {
echo >&2 "NOTE: Running apt-get update and updating your APT caches ..."
if [ "${version}" = 8 ]; then
echo >&2 "WARNING: You seem to be on Debian 8 (jessie) which is old enough we have to disable Check-Valid-Until checks"
+ echo >&2 "We also have to enable the jessie-backports repository"
+ if prompt "Is this okay?"; then
+ echo "deb http://archive.debian.org/debian/ jessie-backports main contrib non-free" \
+ >> /etc/apt/sources.list.d/99-archived.list
+ fi
+ apt-get update -o Acquire::Check-Valid-Until=false
run ${sudo} apt-get "${apt_opts[@]}" -o Acquire::Check-Valid-Until=false update
else
run ${sudo} apt-get "${apt_opts[@]}" update