Python: Error in python:3.6

Created on 29 May 2019  路  2Comments  路  Source: docker-library/python

I'm getting an error while building an image made with FROM python:3.6

Building web
Step 1/9 : FROM python:3.6
 ---> 787e9f4da78e
Step 2/9 : LABEL ******
 ---> Running in 84fe4b350b86
Removing intermediate container 84fe4b350b86
 ---> d2d9cb7edb2e
Step 3/9 : RUN apt-get -y update
 ---> Running in c55b31bc0a76
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie InRelease
Get:2 http://deb.debian.org jessie-updates InRelease [7340 B]
Get:3 http://deb.debian.org jessie Release.gpg [2420 B]
Get:4 http://deb.debian.org jessie Release [148 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [848 kB]
Get:6 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Fetched 10.1 MB in 5s (1717 kB/s)
W: 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)

E: Some index files failed to download. They have been ignored, or old ones used instead.
question

Most helpful comment

you should pass --pull to docker build, it will attempt to pull a newer version of the image. or you can run docker pull python:3.6 before your build.

now the python:3.6 is build base on stretch. your image looks outdated ('jessie')

All 2 comments

you should pass --pull to docker build, it will attempt to pull a newer version of the image. or you can run docker pull python:3.6 before your build.

now the python:3.6 is build base on stretch. your image looks outdated ('jessie')

Thank you! It works.

Was this page helpful?
0 / 5 - 0 ratings