'unable to locate package "software-properties-common" docker image

I am trying to create an ubuntu focal image using docker file. I have this line in my dockerfile:

FROM ubuntu:focal AS systemdependencies 

RUN    apt update \
&& apt --yes upgrade \
&& apt --yes install software-properties-common \
&& add-apt-repository ppa:deadsnakes/ppa

Here is the error:

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package software-properties-common
The command '/bin/sh -c apt --yes install software-properties-common' returned a non-zero code: 100

anyy idea?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source