Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python installation failure fix when building dockerfile #316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidarputharaj19
Copy link

While building Dockerfile, python installation failed due to version not mentioned in the Dockerfile.

This pull request contains solution for the below issue.

Error Logs of existing dockerfile build:
=> ERROR [ 3/14] RUN apt-get -y install curl python make g++ 2.0s

[ 3/14] RUN apt-get -y install curl python make g++:
0.747 Reading package lists...
1.642 Building dependency tree...
1.930 Reading state information...
1.940 Package python is not available, but is referred to by another package.
1.940 This may mean that the package is missing, has been obsoleted, or
1.940 is only available from another source
1.940 However the following packages replace it:
1.940 python-is-python3 2to3
1.940
1.942 E: Package 'python' has no installation candidate


Dockerfile:5

3 | # Install required dependencies
4 | RUN apt-get update
5 | >>> RUN apt-get -y install curl python make g++
6 |
7 | # Install the Azure CLI, which will be required for authentication

ERROR: failed to solve: process "/bin/sh -c apt-get -y install curl python make g++" did not complete successfully: exit code: 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant