Fix Debian 8 (jessie) support (#8590)
James Mills committed
Apr 3, 2020 at 15:27 UTC
d0db816d2c3c8f90311154b4a6bcf189b2922f26
2 files changed
+6
-6
.github/workflows/build-and-install.yml
-6
@@ -49,12 +49,6 @@ jobs:
49
- distro: 'debian:buster'
50
pre: 'apt-get update'
51
- distro: 'debian:stretch'
52
- pre: 'apt-get update'
53
- - distro: 'debian:jessie'
54
- pre: >
55
- echo "deb http://archive.debian.org/debian/ jessie-backports main contrib non-free" >> /etc/apt/sources.list.d/99-archived.list &&
56
- apt-get update -o Acquire::Check-Valid-Until=false
57
-
52
- distro: 'ubuntu:20.04'
53
pre: 'apt-get update'
54
- distro: 'ubuntu:19.10'
packaging/installer/install-required-packages.sh
+6
@@ -1280,6 +1280,12 @@ install_apt_get() {
1280
echo >&2 "NOTE: Running apt-get update and updating your APT caches ..."
1281
if [ "${version}" = 8 ]; then
1282
echo >&2 "WARNING: You seem to be on Debian 8 (jessie) which is old enough we have to disable Check-Valid-Until checks"
1283
+ echo >&2 "We also have to enable the jessie-backports repository"
1284
+ if prompt "Is this okay?"; then
1285
+ echo "deb http://archive.debian.org/debian/ jessie-backports main contrib non-free" \
1286
+ >> /etc/apt/sources.list.d/99-archived.list
1287
+ fi
1288
+ apt-get update -o Acquire::Check-Valid-Until=false
1289
run ${sudo} apt-get "${apt_opts[@]}" -o Acquire::Check-Valid-Until=false update
1290
else
1291
run ${sudo} apt-get "${apt_opts[@]}" update