xxxxxxxxxx
Open the sources.list file with a text editor (for example nano):
sudo nano /etc/apt/sources.list
Add the following lines to the file:
deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu focal main
#deb-src https://ppa.launchpadcontent.net/ondrej/php/ubuntu focal main
Add the repository signing key:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4f4ea0aae5267a6c