All Debian Docker images from the last few years use deb.debian.org,
which is reliable, by default.
Debian 12 Docker images no longer have /etc/apt/sources.list (they use
/etc/apt/sources.list.d instead) so this is a prerequisite for moving
our CI to a supported version of Debian.
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit
34284edecf4b245ddcc9c77b2710030bdc050b42)
# Don't ask questions, just do it
sudo="$sudo env DEBIAN_FRONTEND=noninteractive"
- # Debian Docker images use httpredir.debian.org but it seems to be
- # unreliable; use a CDN instead
- $sudo sed -i -e 's/httpredir\.debian\.org/deb.debian.org/g' \
- /etc/apt/sources.list
-
case "$ci_host" in
(i686-w64-mingw32)
$sudo dpkg --add-architecture i386