From 2936ea53c72e178565730f9376925765e7943f0b Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Mon, 9 Jul 2018 19:05:45 -0400 Subject: [PATCH] android=arm64: Fix image build removing "debian-security" from sources.list This commit is an attempt to fix the following error: W: Failed to fetch http://cdn-fastly.deb.debian.org/debian-security/dists/jessie/updates/InRelease Unable to find expected entry 'main/binary-arm64/Packages' in Release file (Wrong sources.list entry or malformed file) E: Some index files failed to download. They have been ignored, or old ones used instead. Looking at "http://cdn-fastly.deb.debian.org/debian-security/dists/jessie/updates/InRelease", it doesn't list "arm64", it only lists the following ones: Architectures: amd64 armel armhf i386 Considering that the build of June 15 was successful (see https://circleci.com/gh/dockcross/dockcross/1950), the architecture was most likely dropped in a recent update. It could be related to the fact security support for Debian Jessie ended on June 17 2018. See https://en.wikipedia.org/wiki/Debian_version_history#Release_table --- android-arm64/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android-arm64/Dockerfile b/android-arm64/Dockerfile index 5d1d3cb..1bcded3 100644 --- a/android-arm64/Dockerfile +++ b/android-arm64/Dockerfile @@ -1,6 +1,9 @@ FROM dockcross/base:latest MAINTAINER Matt McCormick "matt.mccormick@kitware.com" -RUN dpkg --add-architecture arm64 ; apt-get update +RUN \ + sed -i '/debian-security/d' /etc/apt/sources.list && \ + dpkg --add-architecture arm64 && \ + apt-get update # The cross-compiling emulator RUN apt-get update && apt-get install -y \