Python: error, unable to locate the debian jessie-updates folder.

Created on 26 Mar 2019  路  4Comments  路  Source: docker-library/python

I got the following response when trying to build my docker image:

Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found

What am I doing wrong ? My image command and response are given below.

Docker image:

FROM python:3.6-jessie

RUN apt-get update

Command:

docker build .  

Stack trace.

Sending build context to Docker daemon  875.6MB
Step 1/2 : FROM python:3.6-jessie
 ---> 93a2e69315ea
Step 2/2 : RUN apt-get update
 ---> Running in 9ae4278695a0
Ign http://deb.debian.org jessie InRelease
Ign http://deb.debian.org jessie-updates InRelease
Get:1 http://deb.debian.org jessie Release.gpg [2420 B]
Ign http://deb.debian.org jessie-updates Release.gpg
Get:2 http://security.debian.org jessie/updates InRelease [44.9 kB]
Get:3 http://deb.debian.org jessie Release [148 kB]
Ign http://deb.debian.org jessie-updates Release
Err http://deb.debian.org jessie-updates/main amd64 Packages

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

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

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

Err http://deb.debian.org jessie-updates/main amd64 Packages
  404  Not Found
Get:4 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [822 kB]
Fetched 10.1 MB in 6s (1622 kB/s)
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.
The command '/bin/sh -c apt-get update' returned a non-zero code: 100

Most helpful comment

Debian 8 (Jessie) has been EOL鈥檇 by Debian and so they changed the mirrors. You should change to python:3.6-stretch or as a quick fix, you can add the following before you call apt-get update:

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

All 4 comments

Debian 8 (Jessie) has been EOL鈥檇 by Debian and so they changed the mirrors. You should change to python:3.6-stretch or as a quick fix, you can add the following before you call apt-get update:

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

Ouch. This is being tracked at https://github.com/debuerreotype/docker-debian-artifacts/issues/66#issuecomment-476648047, and hopefully I'll have it fixed later today.

@valdemarrolfsen aaaah oke thanks! that worked :). @tianon thanks!

@valdemarrolfsen thanks!

Was this page helpful?
0 / 5 - 0 ratings