Debian trixie (python:3.11-slim, python:3.13-slim): 'E: Package 'libgl1-mesa-glx' has no installation candidate' and same for openjdk-17-jre-headless; use libgl1 and openjdk-21-jre-headless
Fix: replace libgl1-mesa-glx with libgl1 (provides libGL.so.1 for opencv-python, camelot[cv] and similar) and openjdk-17-jre-headless with openjdk-21-jre-headless (for tabula-py and other Java tools):
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 libglib2.0-0 openjdk-21-jre-headless ghostscript poppler-utils tesseract-ocr \
&& rm -rf /var/lib/apt/lists/*Cause: the official python:3.x-slim tags moved from Debian 12 bookworm to Debian 13 trixie. Trixie dropped the transitional libgl1-mesa-glx package and ships only OpenJDK 21 (apt-cache policy on python:3.13-slim-trixie: openjdk-21-jre-headless 21.0.13, openjdk-17-jre-headless and libgl1-mesa-glx have Candidate: (none)). Most PDF/OpenCV Containerfiles online still list the old names, so an unchanged Containerfile that built last year now fails at the first apt step.
If you need the old names, pin the base to python:3.11-slim-bookworm. Note that bookworm doesn't have openjdk-21 (it has 17), and some tools now require 21 (firebase-tools emulators do).