Build Error. Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages

百般思念 提交于 2019-12-04 07:50:25
Fábio Viriato

@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

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:

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

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

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!