From 07287ebecdccc6be9e6327f8cf9267f8c10731ce Mon Sep 17 00:00:00 2001 From: Julien Mailleret Date: Mon, 29 Apr 2019 11:07:59 +0200 Subject: [PATCH] [test] fix debian-8 provisioning in kitchen tests (#556) Jessie backport repos have been removed from debian mirrors and moved to archive mirrors (cf. https://lists.debian.org/debian-devel-announce/2019/03/msg00006.html). We also need to disable validity checks as this repo is no more updated (https://unix.stackexchange.com/questions/508724/failed-to-fetch-jessie-backports-repository) --- .kitchen.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.kitchen.yml b/.kitchen.yml index 8aa3c37..0a741e3 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -75,7 +75,8 @@ platforms: image: debian:8 privileged: true provision_command: - - echo "deb http://http.debian.net/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list + - echo "deb http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list + - echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf - apt-get update && apt-get -y install -t jessie-backports openjdk-8-jre-headless - apt-get update && apt-get -y install python python-dev python-pip build-essential libyaml-dev python-yaml curl wget net-tools - sed -ri 's/^#?PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config