If we type in the following command into an Ubuntu 22.10 terminal session:

sudo add-apt-repository ppa:ondrej/php

We will see the following error:

E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic Release' does not have a Release file.

At the time of writing this article, the ondrej repository DOES NOT support Ubuntu 22.10 (code name kinetic). Hence the reference in the message to Ubuntu kinetic Release.

The solution is very simple, first, we edit the ondrej-ubuntu-php-kinetic.list file:

sudo nano /etc/apt/sources.list.d/ondrej-ubuntu-php-kinetic.list

And replace the word kinetic in the first line to read:

deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu/ jammy main

Save the changes and update the system.

sudo apt update

reference

https://www.davidl.co.uk/post/installing-php-7x-on-ubuntu-2210-kinetic

Answer from user3818943 on Stack Overflow
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-php-8-1-and-set-up-a-local-development-environment-on-ubuntu-22-04
Install PHP 8.1 and Set Up a Local Dev Environment on Ubuntu | DigitalOcean
January 7, 2026 - Important: post_max_size must be larger than upload_max_filesize. If you set upload_max_filesize = 100M, set post_max_size = 110M or higher. ... Restart your web server after making php.ini changes. Install PHP 8.1 using Ubuntu’s package manager: sudo apt update && sudo apt install php8.1.
🌐
PHP.Watch
php.watch › articles › php-84-install-upgrade-guide-debian-ubuntu
PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian • PHP.Watch
November 21, 2024 - A guide for Debian and Ubuntu on how to install PHP 8.4 on a new server or how to upgrade an existing PHP setup to PHP 8.4.
🌐
Vultr
docs.vultr.com › how-to-install-php-8-on-ubuntu-24-04
How to Install PHP 8 on Ubuntu 24.04 - Complete Guide | Vultr Docs
May 8, 2025 - Learn how to install PHP 8 on Ubuntu 24.04 with step-by-step instructions. Includes configuration tips and troubleshooting for a smooth setup process.
🌐
Linux Hint
linuxhint.com › install-php-8-ubuntu-22-04
How to Install PHP 8 on Ubuntu 22.04 – Linux Hint
For the installation of PHP 8 on Ubuntu 22.04, firstly update the system repositories and install the required dependencies. Then, add the PHP repository using the “$ sudo add-apt-repository ppa:ondrej/php” command and install PHP 8 by executing the “$ sudo apt install php8.0” command.
🌐
TecMint
tecmint.com › home › linux distros › ubuntu › how to install php 8.0 on ubuntu 20.04 / 18.04
How to Install PHP 8.0 on Ubuntu 20.04 / 18.04
December 9, 2020 - But first, let’s update your Ubuntu system packages and install some dependencies as shown. $ sudo apt update $ sudo apt upgrade $ sudo apt install ca-certificates apt-transport-https software-properties-common · Next, add the Ondrej PPA. ... When prompted, press ENTER to proceed with adding the repository. ... Next, update the system repositories to start using the PPA. ... If you are running the Apache web server, install PHP 8.0 with the Apache module as shown.
🌐
Linode
linode.com › docs › guides › install-php-8-for-apache-and-nginx-on-ubuntu
How to Install PHP 8 for Apache and NGINX on Ubuntu | Linode Docs
August 27, 2021 - This guide shows you how to install PHP 8 and PHP-FPM for use with Apache and NGINX on an Ubuntu system.
🌐
Medium
pbcmedia.medium.com › how-to-install-the-latest-version-of-php-8-x-on-ubuntu-a-step-by-step-guide-5c5204db03f8
How to Install the Latest Version of PHP (8.x) on Ubuntu: A Step-by-Step Guide | by PBC Media | Medium
July 23, 2023 - Run the following commands in the terminal to add the PPA: sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt-get update · Enter your password when prompted and press Enter.
Find elsewhere
🌐
Liquid Web
liquidweb.com › home › help docs › server administration › linux server administration › upgrading or installing php on ubuntu 22.04
Upgrading or Installing PHP on Ubuntu — PHP 8.2 and Ubuntu 22.04 | Liquid Web
December 15, 2025 - Older PHP versions can leave your websites and server vulnerable to malicious attacks. This guide walks you through installing PHP 8.3 on Ubuntu 22.04, configuring Apache, and managing any modules your setup requires.
🌐
LinuxCapable
linuxcapable.com › home › ubuntu › how to install php 8.2 on ubuntu (24.04, 22.04)
How to Install PHP 8.2 on Ubuntu (24.04, 22.04) - LinuxCapable
February 22, 2026 - Install PHP 8.2 on Ubuntu 24.04 and 22.04 via the Sury PPA. Configure Apache or Nginx with PHP-FPM, manage extensions, and updates too.
🌐
Medium
shahriar-ratul.medium.com › install-php-8-2-on-ubuntu-22with-nginx-5902fcc1142b
Install PHP 8.2 on Ubuntu 22.04 with Nginx | by Atik Shahriar Ratul | Medium
April 19, 2024 - Install PHP 8.2 on Ubuntu 22.04 with Nginx sudo apt update && sudo apt upgrade -y sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install
🌐
PHP.Watch
php.watch › articles › php-8-5-installation-upgrade-guide-debian-ubuntu
Install and Upgrade to PHP 8.5 on Debian and Ubuntu • PHP.Watch
November 20, 2025 - Explains how to install PHP 8.5 on a new Ubuntu or Deban server, or how to upgrade an existing PHP version to PHP 8.5.
🌐
LinuxCapable
linuxcapable.com › home › ubuntu › how to install php 8.5 on ubuntu
How to Install PHP 8.5 on Ubuntu - LinuxCapable
January 3, 2026 - Install PHP 8.5 on Ubuntu with the pipe operator, URI extension, and clone-with syntax. Includes Apache, Nginx, and PHP-FPM setup.
🌐
UbuntuHandbook
ubuntuhandbook.org › home › howtos › install or upgrade to php 8.5 in ubuntu 24.04 | 22.04
Install or Upgrade to PHP 8.5 in Ubuntu 24.04 | 22.04 | UbuntuHandbook
November 22, 2025 - 1. First, connect to your Ubuntu server, then run command to install the package for the add-apt-repository tool. ... 3. Adding PPA now automatically refresh package cache. Just in case, you may run sudo apt update to update cache manually. Finally, install PHP 8.5 depends on your web server:
🌐
PHP.Watch
php.watch › articles › php-8.3-install-upgrade-on-debian-ubuntu
How to install or upgrade to PHP 8.3 on Ubuntu and Debian • PHP.Watch
November 12, 2023 - ... sudo apt install apt-transport-https sudo curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ ...
🌐
ComputingForGeeks
computingforgeeks.com › home › dev › how to install php 8.2 on ubuntu 22.04|20.04|18.04
How To Install PHP 8.2 on Ubuntu 22.04|20.04|18.04 | ComputingForGeeks
September 6, 2025 - Done Building dependency tree... Done Reading state information... Done · Once the PPA is added, use the apt command to install PHP 8.2 and any other associated PHP modules on Ubuntu server.