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
This commit is contained in:
Jean-Christophe Fillion-Robin 2018-07-09 19:05:45 -04:00
parent 60a37a604e
commit 2936ea53c7
No known key found for this signature in database
GPG Key ID: BAF1E1AEB9097A41

View File

@ -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 \