Fix pip bootstrap on Python 3.9: use version-pinned get-pip.py#254
Merged
gillespeiffer-db merged 1 commit intoJun 4, 2026
Merged
Conversation
pip 26.1 raised the minimum supported Python in the rolling https://bootstrap.pypa.io/get-pip.py to 3.10, so it now errors out on Python 3.9. Switch to the version-pinned URL that pip's own error message recommends, matching the existing release-10.4-LTS fix that did the same for Python 3.8.
madsager-db
approved these changes
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ubuntu/python/Dockerfilebootstraps pip from the rollinghttps://bootstrap.pypa.io/get-pip.py. pip 26.1 raised that script's minimum to Python 3.10, so on this Python 3.9 release line it now errors:This breaks the
pythonimage build.Change
Use the version-pinned bootstrap URL that pip's own error message recommends:
(
python_versionis already3.9here.) This is the same fix already shipped onrelease-10.4-LTSfor Python 3.8 in #222, when pip 25.1 dropped 3.8. The pinned URL is frozen upstream for the 3.9 line, so future pip releases dropping newer Python versions can't break it again.Testing
min_version = (3, 9)(the rolling script is now(3, 10)).pythonimage build will be validated via the standard image rebuild.