What the notice says: frozen, not removed
The notice on the ppa:ondrej/php PPA, quoted on 24 November 2026 in a HestiaCP project issue, comes down to two sentences: "This PPA is frozen and no longer receives updates." and "The PHP packages for Ubuntu are now published at https://packages.sury.org/php/". The same day, a WordOps project issue reports that apt update fails on this repository. Two clarifications help you avoid the wrong reaction.
First, the announcement says nothing is removed or downgraded: the PHP packages already installed stay as they are. Your site does not go down tonight. Second, the word used is "frozen", not "removed": the PPA still exists, but it no longer receives updates. On a server that keeps this source, PHP stops moving, including for security fixes distributed this way. On a fleet of client sites that is the real danger: no alert, nothing red, just a version that ages. The notice publishes no freeze date, so do not assume one. Record the real state of each machine instead.
Finding out whether your servers still use the PPA
Detection comes down to one command to run on each Ubuntu server: grep -rn ondrej /etc/apt/sources.list /etc/apt/sources.list.d/. A line containing ppa.launchpadcontent.net/ondrej/php or ppa:ondrej/php means the machine still depends on the PPA. Searching the folder recursively covers both the old .list files and the deb822-format .sources files that recent Ubuntu releases use more and more. No output does not necessarily mean nothing is there: the PPA may have been added by a tool that writes elsewhere, hence the next list.
For a fleet, run the command over SSH on every machine and keep the output in a dated file: it is your starting inventory. Also note each system's codename with lsb_release -sc. The published migration procedure targets Ubuntu Jammy and Noble; for any other release, assume nothing and check before acting (see the troubleshooting below).
Where the PPA hides outside /etc/apt
- Provisioning scripts — an
add-apt-repository ppa:ondrej/phpin an install script, a cloud-init user-data or a playbook adds the PPA again on every new machine. - Ansible roles and similar recipes — a repository module that cites
ppa:ondrej/phpputs the PPA back on the next run, even after a manual cleanup. - Docker images — a
RUNinstruction that adds the PPA in a Dockerfile rebuilds the image with the frozen source, and the CI that builds that image will fail in turn. - CI pipelines — a PHP install step on an Ubuntu runner may add the PPA before the tests, without the application repository mentioning it anywhere else.
- Panels and admin tools — WordOps and HestiaCP already have issues open; any tool that installs PHP on Ubuntu deserves the same check.
- Internal documentation — the agency's "set up a server" procedure often copies the PPA command, and the next hire replays it as written.
Recording the baseline before you migrate
Before any change, take a snapshot of what is installed, so you can prove afterwards that nothing moved. Run apt-cache policy php-cli: the output shows the installed version, the candidate version and, for each, the origin repository. On a machine that depends on the PPA you will see a ppa.launchpadcontent.net/ondrej/php line. Add dpkg -l 'php*' for the list of installed PHP packages, and php -v for the command-line version.
If PHP-FPM serves your sites, also record the active services with systemctl list-units 'php*-fpm*'. Save these three outputs in a file: after the migration the same series of commands must return the same installed versions, and only the repository origin changes. That is what turns "I think nothing broke" into evidence you can show a client.
Old PPA and new repository, by Ubuntu release
Scroll the table
| Comparison point | ondrej/php PPA | packages.sury.org/php |
|---|---|---|
| Status | Frozen: no longer receives updates | Main PHP repository for Debian and Ubuntu |
| Ubuntu 22.04 (Jammy) | Migration through the `debsuryorg-repository-php` package | New installs possible; standard support until June 2027 |
| Ubuntu 24.04 (Noble) | Migration through the `debsuryorg-repository-php` package | New installs possible; standard support until May 2029 |
| Ubuntu 26.04 (Resolute) | Outside the published migration procedure | New installs possible; standard support until May 2031 |
| Source file | A PPA file in `/etc/apt/sources.list.d/` | `/etc/apt/sources.list.d/php.list` (README script) |
| Signing keyring | PPA-specific key | `/usr/share/keyrings/debsuryorg-archive-keyring.gpg` |
| Debian | Not affected | Already the usual source, nothing to change |
Migrating without downgrading anything (Jammy and Noble)
Refresh the apt index
sudo apt update
If this command fails with a label error, read the dedicated section below first: it explains the message and what to do about it.Install the migration package
sudo apt install debsuryorg-repository-php
This is the command the notice gives to prepare the move to the new repository. Reread the list of proposed packages before confirming: it must not contain any PHP removal.Remove the frozen PPA
sudo add-apt-repository --remove ppa:ondrej/php
The PPA source disappears from/etc/apt/sources.list.d/. Already installed packages are not touched.Refresh the index again
sudo apt update
The command must no longer mentionppa.launchpadcontent.net/ondrej/php. If it still does, another PPA source remains: rerun the detection from the earlier section.Check where the packages come from
apt-cache policy php-cli
The installed version must be identical to the one recorded before the migration, and the origin must now bepackages.sury.org. A newer candidate version may appear: that is the point, since the new repository keeps moving.Check that the service is running
php -vsystemctl list-units 'php*-fpm*'
Versions and active services must match your starting record. A PHP-FPM serving sites does not restart by itself because the source changed.Log the machine as migrated
Write down the date, the Ubuntu codename and the
apt-cache policyoutput in your inventory. On a fleet, that trace is what tells you which machines remain to be handled.
The install script checks no fingerprint
For a new installation, the README script installs lsb-release, ca-certificates and curl, downloads https://packages.sury.org/debsuryorg-archive-keyring.deb, installs it with dpkg -i, then writes /etc/apt/sources.list.d/php.list with the line deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main. The transport is HTTPS, but the script verifies no key fingerprint. On a sensitive server, download the file, inspect it with gpg --show-keys /usr/share/keyrings/debsuryorg-archive-keyring.gpg, and compare the fingerprint with one from a machine you already migrated. Do not paste a script you have not read into a production terminal.
The apt label-change error
On machines that have not migrated yet, apt update may stop with a message along these lines: the repository ppa.launchpadcontent.net/ondrej/php changed its "Label" value from "PPA for PHP" to "PPA for PHP (deprecated)". Apt refuses to continue until you accept this change, which is its normal behaviour: a modified label can signal a repository taken over by someone else.
Here the change is announced by the PPA notice. Note the difference in vocabulary: apt's message says "deprecated", the notice says "frozen". Either way, the source is no longer fed. The emergency exit exists: rerunning the update with the --allow-releaseinfo-change-label option gets past the step. Treat it as a plaster, not the solution: it unblocks apt update without changing the fact that the PPA is frozen. The right answer is the four-command migration above, after which the message goes away on its own.
Docker images, CI and provisioning tools
A server migrated by hand becomes a frozen server again as soon as a script rebuilds it with the old instruction. Search for the PPA in all your code and infrastructure repositories with grep -rIn ondrej ., run at the root of each project: Dockerfile, CI workflows, shell scripts, Ansible roles, cloud-init files. For each hit, replace the PPA addition with installing the migration package or with the README procedure, depending on whether the image starts from an already migrated base or from a fresh install.
In a Dockerfile, the image's APT step is the place to fix first: an image built yesterday with the PPA keeps running, but the next rebuild will fail or ship a frozen source. Rebuild the base images, then the application images, and check apt-cache policy php-cli inside the container. For a tool such as WordOps or HestiaCP, follow the vendor's issues and reread the apt sources after each update of the tool, because it may rewrite its own repositories.
Troubleshooting: five cases met in practice
- apt update stops on the "Label" — the message mentions "PPA for PHP (deprecated)". Migrate with the four commands of the procedure; the
--allow-releaseinfo-change-labeloption only serves to unblock temporarily. - Two PHP repositories active at once —
apt-cache policy php-clishows the PPA andpackages.sury.org. Remove the PPA withsudo add-apt-repository --remove ppa:ondrej/php, thensudo apt update. - A codename missing from the procedure — the notice only mentions Jammy and Noble. Read
lsb_release -sc, then testcurl -sI https://packages.sury.org/php/dists/$(lsb_release -sc)/Release: a 200 code indicates the repository publishes that codename. - A Debian server — it is not affected, it already uses
packages.sury.org. Simply check withgrep -rn sury /etc/apt/that no PPA line has slipped in. - The PPA comes back after a tool or script — a provisioning run, an image or a panel replayed the addition. Find it with
grep -rIn ondrej .and fix the source, not the machine.
How long the new repository lasts
The deb.sury.org site presents packages.sury.org/php as the main PHP repository for Debian and Ubuntu. For Ubuntu it covers only LTS releases, during their standard support period. According to the published table, support in the main repository ends in June 2027 for Ubuntu 22.04, in May 2029 for Ubuntu 24.04 and in May 2031 for Ubuntu 26.04. After that, packages come through PHP LTS by Freexian, a commercial service.
Read these dates as a work calendar for the agency. A server on Ubuntu 22.04 has a shorter horizon than the other two: migrating to packages.sury.org brings you up to date today, but it does not replace upgrading the system. The guides on the end of life of a PHP version and on moving from 24.04 to 26.04 detail those projects, and the inventory of PHP versions across the fleet tells you which come first.
The official documentation
PPA notice, quoted in the HestiaCP issue: https://github.com/hestiacp/hestiacp/issues/6049
WordOps issue on the apt update failure: https://github.com/WordOps/WordOps/issues/801
Repository install script (README): https://packages.sury.org/php/README.txt
Repository overview and support calendar: https://deb.sury.org/
Guide provided, no support included: ServOrbit does not manage the servers you administer yourself.
servorbit.com/ma-en/blog/ondrej-php-ppa-frozen-migrate-to-packages-sury-org


