Build Error. Failed to fetch

failed to fetch 404 not found
release file for is expired
failed to fetch http debian froxlor org dists jessie main source sources httperror404
failed to fetch jessie-updates
failed to fetch http ftp us debian org debian dists jessie backports main source sources
not found http ftp debian org debian dists jessie backports main binary amd64 packages
failed to fetch http security debian org dists jessie-updates main source sources hash sum mismatch
err http httpredir debian org jessie backports contrib amd64 packages

Build Errors unable to find jq.

Err jessie/main amd64 Packages 404 Not Found Err jessie-updates/main amd64 Packages 404 Not Found Fetched 723 kB in 2s (357 kB/s) W: Failed to fetch 404 Not Found

W: Failed to fetch 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead. $ apt-get install jq Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package jq ERROR: Job failed: exit code 1

@codinghaus mentioned in another thread:

This is due to the fact that as Wheezy and Jessie have been integrated into the structure recently, we are now removing all of Wheezy and all non-LTS architectures of Jessie from the mirror network starting today.

A solution (according to is to add the following command into your Dockerfile before calling any apt-get update when using debian:jessie.

RUN sed -i '/jessie-updates/d' /etc/apt/sources.list  # Now archived

This will remove the jessie-updates repository (which now causes the 404) from sources.list.

FROM debian:jessie
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list  # Now archived
RUN apt-get update
CMD /bin/sh

W: Failed to fetch​amd64/Packages 404 Not Found [IP: 80] · node. Jessie is reaching EOL so jessie-updates was merged and removed from the main mirrors. You either migrate to stretch or remove those sources from your image. You either migrate to stretch or remove those sources from your image.

Maybe, the third party import that you are doing is not able to refer to the debian jessie, so changing to might make it work. If you are not referring to this directly, try upgrading or downgrading the imported versions, if removing them is not the option.

In my case, i was using:

FROM docker.***.com/node:10

downgrading the node from 10 to 8, kicked off the job successfully.

deb jessie main deb-src by @inostia and @Stephen Kitt I was still getting the following error: W: Failed to fetch http://​ 404 Not the last 24 hours) as it failed to source dependencies during a docker build​. The mentioned duplicate question doesn't help me due to the fact that I'm not relying on a Docker image of Debian Jessie but instead using Node 6.10 which itself relies on Debian Jessie therefore I can't manage the sources directly.

I had the same problem today. I believe yours is related to Jessie being removed from Debian (see:

I upgraded php in Dockerfile to php:7.1.27-apache-stretch and it worked.

getting following error message Step 2/9 : RUN apt-get update [44.9 kB] Get:2 jessie/updates/main amd64 Packages [824 kB] I to host and review code, manage projects, and build software together. to fetch  # deb cdrom:[Debian GNU/Linux 8.1.0 _Jessie_ - Official Multi-architecture amd64/i386 NETINST #1 20150606-18:40]/ jessie main #deb cdrom:[Debian GNU/Linux 8.1.0 _Jessie_ - Official Multi-architecture amd64/i386 NETINST #1 20150606-18:40]/ jessie main

Just place this line before your apt-get commands in your Dockerfile:

RUN echo "deb jessie main" > /etc/apt/sources.list

Debian removed some url for old packages which is causing this issue. The line fixes the repository to refer to.

Failed to fetch Debian jessie-updates packages #817​debian/dists/jessie-updates/main/binary-amd64/Packages while m:~$ gpg --keyserver --recv 85A3D26506C4AE2A gpg: requesting key 06C4AE2A from hkp server gpg: key 06C4AE2A: "Debian Mozilla team APT archive <>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 ztcoracat@mock:~$ gpg --export --armor 85A3D26506C4AE2A tmp.key -----BEGIN PGP PUBLIC KEY BLOCK----- Version

Executing apt update in a Debian 8 I get the errorW: Failed to fetch Failed to fetch​Packages deb jessie/updates main deb-src Make a backup of t he sources.list file: I get the next error because the backports has expired. Stack Exchange Network. Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Failed to fetch Unable to find expected entry 'main/binary-amd64/Packages' in Release file (​Wrong sources.list entry or malformed file). My docker build is failing but I'm sure I was able to build this earlier today. But now when I build I get the following error:. ERROR: Service 'php-fpm' failed to build: The command '/bin/sh -c set -xe; apt-get update -yqq && pecl channel-update && apt-get install -yqq apt-utils libzip-dev zip unzip && docker-php-ext-configure zip --with-libzip && docker-php-ext-install zip && php -m | grep -q 'zip'' returned a non-zero code: 100

Hi, I am getting the following error when trying to build my code: #! jessie-​updates/main amd64 Packages Err httpredir.debian.​org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not echo "​deb jessie-backports main" | sudo tee  Package: apt Version: 1.1~exp8 Severity: normal Dear Maintainer, Unable to download the index. I get the following when trying to update the index.