Skip to content

Remove python3.10-distutils and python3.10-venv from Dockerfile#539

Open
mmore500 wants to merge 3 commits intomasterfrom
claude/fix-docker-python-packages-wSpye
Open

Remove python3.10-distutils and python3.10-venv from Dockerfile#539
mmore500 wants to merge 3 commits intomasterfrom
claude/fix-docker-python-packages-wSpye

Conversation

@mmore500
Copy link
Member

@mmore500 mmore500 commented Feb 9, 2026

These packages have been removed from the deadsnakes PPA for Ubuntu
Focal and are no longer available, causing the Docker build to fail.

Neither package is needed:

  • pip is installed via get-pip.py which doesn't require distutils
  • virtualenv is installed via pip, replacing the need for the venv package

Also fix legacy ENV format warning (ENV key value -> ENV key=value).

https://claude.ai/code/session_01UWALAV2tXVZ3pDtg88Npo9

These packages have been removed from the deadsnakes PPA for Ubuntu
Focal and are no longer available, causing the Docker build to fail.

Neither package is needed:
- pip is installed via get-pip.py which doesn't require distutils
- virtualenv is installed via pip, replacing the need for the venv package

Also fix legacy ENV format warning (ENV key value -> ENV key=value).

https://claude.ai/code/session_01UWALAV2tXVZ3pDtg88Npo9
Python 3.10 is no longer available in the deadsnakes PPA for Ubuntu
Focal — the package installs but provides no binary, causing the
Docker build to fail at the update-alternatives step.

Switch all python3.10 references to python3.12, which is actively
maintained in the deadsnakes PPA.

https://claude.ai/code/session_01UWALAV2tXVZ3pDtg88Npo9
The deadsnakes PPA has dropped Ubuntu Focal (20.04) support entirely,
making it impossible to install Python 3.10 (or any other version)
from the PPA. Ubuntu Jammy ships with Python 3.10 natively, removing
the need for the deadsnakes PPA altogether.

Changes:
- Base image: ubuntu:focal-20230412 -> ubuntu:jammy
- Replace deadsnakes PPA with Mozilla Team PPA (Firefox is snap-only
  in Jammy by default, need the PPA for deb-based install in Docker)
- Add apt pinning to prefer Firefox from Mozilla PPA
- Use native python3.10 package (no regex escaping needed)
- Revert python3.12 references back to python3.10

https://claude.ai/code/session_01UWALAV2tXVZ3pDtg88Npo9
Copy link
Member Author

@mmore500 mmore500 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bumps ubuntu version to track deadsnakes deprecation, makes change to update firefox install (on jammy, this is by snap unless ppa added), makes syntax change to modernize dockerfile

lgtm, and successfully fixes CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants