Failed to fetch Jessie Updates!

Hi,
I am getting the following error when trying to build my code:

#!/bin/bash -eo pipefail
apt-get update
apt-get install git libpng-dev wget zip unzip python-pip rsync -y
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]

Ign http://httpredir.debian.org jessie InRelease

Ign http://httpredir.debian.org jessie-updates InRelease

Get:2 http://httpredir.debian.org jessie Release.gpg [2420 B]

Ign http://httpredir.debian.org jessie-updates Release.gpg

Get:3 http://httpredir.debian.org jessie Release [148 kB]

Ign http://httpredir.debian.org jessie-updates Release

Get:4 http://security.debian.org jessie/updates/main amd64 Packages [822 kB]

Get:5 http://httpredir.debian.org jessie/main amd64 Packages [9098 kB]

63% [4 Packages 0 B] [5 Packages 5349 kB/9098 kB 59%]Err http://httpredir.debian.org jessie-updates/main amd64 Packages
  

Err http://httpredir.debian.org jessie-updates/main amd64 Packages
  

Err http://httpredir.debian.org jessie-updates/main amd64 Packages
  

Err http://httpredir.debian.org jessie-updates/main amd64 Packages
  

Err http://httpredir.debian.org jessie-updates/main amd64 Packages
  404  Not Found

100% [5 Packages 9098 kB]Fetched 10.1 MB in 1s (8018 kB/s)
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Exited with code 100

Does anyone know how to resolve this issue? Or maybe a workaround?

Hello,

We are discussing what happened over here: Apt-get update return 404

There has been an upstream modification to Ubuntu Jessie images that has negatively impacted our images. We have a PR in place that will resolve this shortly. In the meantime you may run:

 - run: |
        sudo rm /etc/apt/sources.list
        echo "deb http://archive.debian.org/debian/ jessie-backports main" | sudo tee -a /etc/apt/sources.list
        echo "deb-src http://archive.debian.org/debian/ jessie-backports main" | sudo tee -a /etc/apt/sources.list
        echo "Acquire::Check-Valid-Until false;" | sudo tee -a /etc/apt/apt.conf.d/10-nocheckvalid
        echo 'Package: *\nPin: origin "archive.debian.org"\nPin-Priority: 500' | sudo tee -a /etc/apt/preferences.d/10-archive-pin
        sudo apt-get update
1 Like