Build Error. Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages
Build Errors unable to find jq.
Err http://deb.debian.org jessie/main amd64 Packages 404 Not Found Err http://deb.debian.org jessie-updates/main amd64 Packages 404 Not Found Fetched 723 kB in 2s (357 kB/s) W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://deb.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. $ 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 archive.debian.org 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 https://github.com/debuerreotype/docker-debian-artifacts/issues/66#issuecomment-476616579) 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 http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found [IP: 184.108.40.206 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 ftp.debian.org to http://ftp.us.debian.org 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:
downgrading the node from 10 to 8, kicked off the job successfully.
deb http://cdn-fastly.deb.debian.org/debian/ jessie main deb-src by @inostia and @Stephen Kitt I was still getting the following error: W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 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: https://twitter.com/debian/status/1109080168318926851?s=12).
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 http://security.debian.org jessie/updates/main amd64 Packages [824 kB] I to host and review code, manage projects, and build software together. to fetch http://deb.debian.org/debian/dists/jessie-backports/main/binary- # 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 http://deb.debian.org/debian 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 http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages while m:~$ gpg --keyserver subkeys.pgp.net --recv 85A3D26506C4AE2A gpg: requesting key 06C4AE2A from hkp server subkeys.pgp.net gpg: key 06C4AE2A: "Debian Mozilla team APT archive <firstname.lastname@example.org>" 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 http://ftp.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages deb http://security.debian.org/ 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 http://deb.debian.org/debian/dists/jessie-updates/InRelease 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 pecl.php.net && 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 http://httpredir.debian.org httpredir.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not echo "deb http://archive.debian.org/debian/ 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.