Error al instalar Python 3.7 en Ubuntu 23.04

Error al instalar Python 3.7 en Ubuntu 23.04

intentando instalar Python 3.7 en un contenedor con base Ubuntu 23.04. Sigo recibiendo los siguientes errores. Esto es lo que he probado:

RUN apt-get install -y python3.7 python3-pip:
#8 0.788 Package python3.7 is not available, but is referred to by another package.
#8 0.788 This may mean that the package is missing, has been obsoleted, or
#8 0.788 is only available from another source
#8 0.788
#8 0.796 E: Package 'python3.7' has no installation candidate
[4/9] RUN apt-get update -y && apt-get install software-properties-common -y && add-apt-repository ppa:deadsnakes/ppa -y 
 => ERROR [5/9] RUN apt-get update -y                                 
#8 1.246 Err:6 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu lunar Release
#8 1.246   404  Not Found
#8 1.275 Reading package lists...
#8 1.671 E: The repository 'https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu lunar Release' does not have a Release file.
#8 0.712 Ign:5 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu lunar InRelease
#8 1.155 Err:6 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu lunar Release
#8 1.155   404  Not Found [IP: xx.xx.xx.xx]
#8 1.187 Reading package lists...
#8 1.608 E: The repository 'https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu lunar Release' does not have a Release file.
 => ERROR [6/8] RUN apt-get install -y python3.7.16 python3-pip 
------
 > [6/8] RUN apt-get install -y python3.7.16 python3-pip:
#9 0.315 Reading package lists...
#9 0.691 Building dependency tree...
#9 0.777 Reading state information...
#9 0.810 E: Unable to locate package python3.7.16
#9 0.810 E: Couldn't find any package by glob 'python3.7.16'
#9 0.810 E: Couldn't find any package by regex 'python3.7.16'

información relacionada