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

Docker example image for frontend won't build #5

Open
ingoaf opened this issue Sep 21, 2023 · 0 comments · May be fixed by #6
Open

Docker example image for frontend won't build #5

ingoaf opened this issue Sep 21, 2023 · 0 comments · May be fixed by #6

Comments

@ingoaf
Copy link
Contributor

ingoaf commented Sep 21, 2023

Docker example image for frontend won't build

Summary

When trying to build the example docker image of the frontend, the build fails with the error message 5.816 E: Package 'python' has no installation candidate

Steps to reproduce

Build docker image from frontend Dockerfile.

What is the current bug behavior?

Build fails at step 6/8 with the error message 5.816 E: Package 'python' has no installation candidate

What is the expected correct behavior?

Build should complete successfully

Relevant logs and/or screenshots

=> ERROR [conntest_frontend build-step 6/8] RUN apt update && apt install python -y                                                                                                           9.3s 
------
 > [conntest_frontend build-step 6/8] RUN apt update && apt install python -y:
0.608
0.608 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0.608
0.851 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
0.939 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
0.979 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
2.087 Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8906 kB]
2.999 Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [6432 B]
3.253 Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [63.2 kB]
4.141 Fetched 9227 kB in 4s (2621 kB/s)
4.141 Reading package lists...
4.696 Building dependency tree...
4.886 Reading state information...
4.907 All packages are up to date.
4.915
4.915 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
4.915
4.917 Reading package lists...
5.614 Building dependency tree...
5.804 Reading state information...
5.813 Package python is not available, but is referred to by another package.
5.813 This may mean that the package is missing, has been obsoleted, or
5.813 is only available from another source
5.813 However the following packages replace it:
5.813   python-is-python3 2to3
5.813
5.816 E: Package 'python' has no installation candidate
------
failed to solve: process "/bin/sh -c apt update && apt install python -y" did not complete successfully: exit code: 100

Line of code

https://github.com/industrial-edge/connectivity-tester/blob/main/src/frontend_react/Dockerfile.example#L16

Suggestion

Replace python package with python-is-python3 in the forementioned line like this: RUN apt update && apt install python-is-python3 -y

adrelino added a commit to adrelino/connectivity-tester that referenced this issue Sep 21, 2023
This fixes industrial-edge#5 in upstream: Docker example image for frontend won't build
@adrelino adrelino linked a pull request Sep 21, 2023 that will close this issue
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 a pull request may close this issue.

1 participant