Skip to content

Comments

[Branch-2.7][Build] Fix docker image install python3.7-dev problem#11943

Merged
codelipenghui merged 3 commits intoapache:branch-2.7from
gaoran10:gaoran/add-ppa-rep-for-docker-build
Sep 7, 2021
Merged

[Branch-2.7][Build] Fix docker image install python3.7-dev problem#11943
codelipenghui merged 3 commits intoapache:branch-2.7from
gaoran10:gaoran/add-ppa-rep-for-docker-build

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 to install the latest python3 component.

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 added area/build doc-not-needed Your PR changes do not impact docs labels Sep 7, 2021
@gaoran10 gaoran10 changed the title [Build] Fix docker image install python3.7-dev problem [Branch-2.7][Build] Fix docker image install python3.7-dev problem Sep 7, 2021
@codelipenghui codelipenghui merged commit 9064963 into apache:branch-2.7 Sep 7, 2021
@gaoran10 gaoran10 deleted the gaoran/add-ppa-rep-for-docker-build branch September 8, 2021 01:57
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build cherry-picked/branch-2.7 Archived: 2.7 is end of life doc-not-needed Your PR changes do not impact docs release/2.7.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants