In October 2024, ubuntu:latest does not include the package python.
Either choose a specific version of ubuntu (which is is best practice to do anyway) and/or switch the package to python3 (which is what I've done locally to make the docker build continue).
Step 12/50 : RUN apt-get install -y git patch lzma-dev libxml2-dev libssl-dev python curl wget
---> Running in c4317f5248b9
Reading package lists...
Building dependency tree...
Reading state information...
Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
2to3 python-is-python3
E: Package 'python' has no installation candidate
The command '/bin/sh -c apt-get install -y git patch lzma-dev libxml2-dev libssl-dev python curl wget' returned a non-zero code: 100
In October 2024,
ubuntu:latest
does not include the packagepython
.Either choose a specific version of
ubuntu
(which is is best practice to do anyway) and/or switch the package topython3
(which is what I've done locally to make thedocker build
continue).