I am using this Dockerfile to deploy to App Engine Flexible environment:
FROM gcr.io/google-appengine/python
RUN apt-get -y update && apt-get -y upgrade\
&& apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:ubuntugis/ppa \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt-get -y update && apt-get -y upgrade\
&& apt-get -y install python3.8 python3.8-distutils python3.8-venv \
gdal-bin libgdal-dev python3-gdal \
&& apt-get autoremove -y \
&& apt-get autoclean -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN virtualenv /env -p python3.8
ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATHetc.
I've been using this configuration for at least a year and deploy to GCP regularly. I haven't installed or updated any libraries and only changed some Python code. As of this Friday (1/21/2022) morning, when I try to deploy I'm getting these errors:
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package python3.8
E: Couldn't find any package by glob 'python3.8'
E: Couldn't find any package by regex 'python3.8'
E: Unable to locate package python3.8-distutils
E: Couldn't find any package by glob 'python3.8-distutils'
E: Couldn't find any package by regex 'python3.8-distutils'
E: Unable to locate package python3.8-venv
E: Couldn't find any package by glob 'python3.8-venv'
E: Couldn't find any package by regex 'python3.8-venv'
The command '/bin/sh -c apt-get -y update && apt-get -y upgrade && apt-get install -y software-properties-common && add-apt-repository -y ppa:ubuntugis/ppa && add-apt-repository -y ppa:deadsnakes/ppa && apt-get -y update && apt-get -y upgrade && apt-get -y install python3.8 python3.8-distutils python3.8-venv gdal-bin libgdal-dev python3-gdal && apt-get autoremove -y && apt-get autoclean -y && apt-get clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 100
-------------------------------------------------------------------------------------------------------------------------------------------
ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/cloud-build/builds/d994e9d6-3c73-4cb8-b5af-6a186c229d3f?project=33114313460 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for detailsThanks in advance for any help you can provide.