# Failed to fetch Jessie Updates!

**URL:** <https://discuss.circleci.com/t/failed-to-fetch-jessie-updates/29246>\
**Category:** Build Environment\
**Created:** [March 26, 2019, 8:39am UTC](https://discuss.circleci.com/t/failed-to-fetch-jessie-updates/29246 "2019-03-26T08:39:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sohaibfarooqi](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sohaibfarooqi/32/22216_2.png) [@sohaibfarooqi](https://discuss.circleci.com/u/sohaibfarooqi)\
**Post date:** [March 26, 2019, 8:39am UTC](https://discuss.circleci.com/t/failed-to-fetch-jessie-updates/29246/1 "2019-03-26T08:39:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![KyleTryon](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kyletryon/32/9977_2.png) [@KyleTryon](https://discuss.circleci.com/u/KyleTryon)\
**Post date:** [March 26, 2019, 1:34pm UTC](https://discuss.circleci.com/t/failed-to-fetch-jessie-updates/29246/2 "2019-03-26T13:34:34Z")

</div>

Hello,

We are discussing what happened over here: [Apt-get update return 404](https://discuss.circleci.com/t/apt-get-update-return-404/29237/4)

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:

```auto
 - 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

```

---

<div class="post-metadata">

**Author:** ![KyleTryon](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kyletryon/32/9977_2.png) [@KyleTryon](https://discuss.circleci.com/u/KyleTryon)\
**Post date:** [March 26, 2019, 1:34pm UTC](https://discuss.circleci.com/t/failed-to-fetch-jessie-updates/29246/3 "2019-03-26T13:34:42Z")

</div>

Closed on March 26, 2019, 1:34pm UTC


