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

[Build] Fix docker image install python3.7-dev problem #11942

Merged

Conversation

gaoran10
Copy link
Contributor

@gaoran10 gaoran10 commented Sep 7, 2021

Motivation

Currently, when building docker image using branch-2.7, we met a problem, it seems that installing python3.7-dev in some os version need to add the apt repo ppa:deadsnakes/ppa.

error logs

[INFO] Building dependency tree...
[INFO] 
[INFO] Reading state information...
[INFO] Package python3.7 is not available, but is referred to by another package.
[INFO] This may mean that the package is missing, has been obsoleted, or
[INFO] is only available from another source
[INFO] 
[INFO] Package libreadline-gplv2-dev is not available, but is referred to by another package.
[INFO] This may mean that the package is missing, has been obsoleted, or
[INFO] is only available from another source
[INFO] 
[INFO] E: Package 'python3.7' has no installation candidate
[INFO] E: Unable to locate package python3.7-dev
[INFO] E: Couldn't find any package by glob 'python3.7-dev'
[INFO] E: Couldn't find any package by regex 'python3.7-dev'
[INFO] E: Package 'libreadline-gplv2-dev' has no installation candidate
[INFO] 
Error:  The command '/bin/sh -c apt-get update      && apt-get install -y netcat dnsutils less procps iputils-ping                  python3.7 python3.7-dev python3-setuptools python3-yaml python3-kazoo                  libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev                  curl      && apt-get clean      && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Or maybe we could sync the DockerFile of the branch-2.7 with the branch master's.

Modifications

Add apt repo ppa:deadsnakes/ppa before apt update.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

Check the box below and label this PR (if you have committer privilege).

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@gaoran10 gaoran10 self-assigned this Sep 7, 2021
@gaoran10 gaoran10 changed the title [Docker Build] Fix docker image install python3.7-dev problem [Build] Fix docker image install python3.7-dev problem Sep 7, 2021
@gaoran10 gaoran10 added the doc-not-needed Your PR changes do not impact docs label Sep 7, 2021
@gaoran10 gaoran10 merged commit b0e3853 into apache:branch-2.7 Sep 7, 2021
@codelipenghui
Copy link
Contributor

@gaoran10 I have reverted the change, you may accidentally click the merge button. Please create a new PR for fixing the build issue, thanks.

@gaoran10 gaoran10 deleted the gaoran/add-ppa-rep-for-docker-build branch September 7, 2021 09:13
@gaoran10
Copy link
Contributor Author

gaoran10 commented Sep 7, 2021

Sorry, my mistake push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants