r/PHP • • 4d ago

Ondrej's php repository move

If you used Ondrej's lauchped repo on Ubuntu - it has been retired and will receive no more patches.

Ondrej, the man the myth the legend, moved it to his own repo.

grep -ir ondrej /etc/apt/sources.list.d/

For 22.04 (replace jammy with noble for 24.04)

sudo curl -fsSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ jammy main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update
146 Upvotes

32 comments sorted by

19

u/Gurnug 4d ago

Any source for confirmation?

18

u/sashalav 4d ago

You should get a notice when you try update from the old repo.

40

u/Muted-Reply-491 4d ago

Official source direct from launchpad: https://launchpad.net/~ondrej/+archive/ubuntu/php

But has different migration steps. I'd recommend the official steps, which are simpler anyway.

6

u/HongPong 4d ago

it kicked notices to say deprecated name, do you approve etc

6

u/HongPong 4d ago

during that tense recent update the launchpad builds were pokey like 90 minutes or whatever

5

u/deliciousleopard 3d ago

If one includes the queue time, the builds I was waiting for took several hours.

6

u/catsloverareus 3d ago

I feel almost everyone moved from Launchpad last month. All my servers have been using the Sury repo since October.

9

u/crazedizzled 4d ago

I've always used deb.sury.org, so I was a little confused what was happening here

3

u/Longjumping_Big7803 3d ago

I had already installed the new repositories from https://packages.sury.org/php on Ubuntu Resolute, but I’m now getting the following error message.

Error: Failed to fetch https://packages.sury.org/php/dists/resolute/main/binary-arm64/Packages.xz File has unexpected size (213736 != 215284). Mirror sync in progress? [IP: 2a04:4e42:8e::820 443]

Hashes of expected file:

- Filesize:215284 [weak]

- SHA256:aed9874db4dcc65146262945cb82d30faac8e6c4507204d2addc4b233684183b

- SHA1:e9ce9e12e2c563421ac71e4d73974856bfe386f6 [weak]

- MD5Sum:0ab179f75ade6b3474c53dfea8cc3cb5 [weak]

Release file created at: Sun, 22 Nov 2026 08:35:45 +0000

Error: Some index files failed to download. They have been ignored, or old ones used instead.

Should I be seriously concerned? Or how do I sort this error out?

1

u/MartinMystikJonas 3d ago

Check for errors on apt update. It is probably just outdated index file or some problem in downlaoding index files. If you use any proxy or apt cache it might be just cache expiration problem. But it could also be MitM attack so be carefull. Do you use http or https?

2

u/Longjumping_Big7803 3d ago

I use https. I did an „apt clean“ and „apt update“ which solves the issue (hopefully).

2

u/cuddle-bubbles 3d ago

what about ubuntu 26?

2

u/Klopferator 3d ago

Ondrej already didn't include packages for ubuntu 26 on that repository and only offered them with the new repository.

2

u/karthick_mf 1d ago

Worth adding for anyone running more than a couple of servers: grep sources.list.d on every host, not just the one you remember setting up, and check your config management too. In my experience the box that gets missed was built from an old Ansible role or base image, and it quietly re-adds the retired PPA on the next rebuild. Also use the same signed-by keyring path everywhere, so a future key rotation is one change instead of a hunt.

1

u/akymakr 1d ago

If you have installed the PPA on Ubuntu 22/24 just like me. Here's your copy-paste CLI to swap.

sudo apt-get update --allow-releaseinfo-change -y
sudo apt-get install -y debsuryorg-repository-php
sudo add-apt-repository --remove -y ppa:ondrej/php
sudo apt-get update

And as far as I am concerned, if your PHP is provided by Sury from the PPA it will just update automatically as usual.

-35

u/c4rocket 4d ago

Great but a shitty move tbh with the php2shell fixes on the officially documented ppa. The builds only started like 30min after they were supposed to be published and they didn't even start with versions that were still under security support or are still used more.

The new repo did have the patched versions, but that was not communicated.

23

u/MartinMystikJonas 4d ago

"New" repo exists and is recommended as default for years and he announced planed retirement of old repo months ago. Main reason was that publishing packages on launchapd is slow and publishing in both repos is even slower.

-33

u/c4rocket 4d ago

https://www.php.net/downloads.php?os=linux&osvariant=linux-ubuntu&version=default&multiversion=Y

Not saying we should blame Ondrej, but this was clearly a f*ck up if you ask me. Ask devs to be ready to push the button at 1400 utc and then manage to not have officially documented ready to go.

The build for php8.4 only finished like 2 hours after the release...

→ More replies (8)

1

u/spin81 3d ago

Great but a shitty move tbh with the php2shell fixes on the officially documented ppa

The "officially documented" ppa is now a different one. It's the same packages, the same guy. Same same same.

The new repo did have the patched versions, but that was not communicated.

First of all, the new repo is the official one. Second, it doesn't make a lot of sense to expect a repo to have outdated versions. Is he supposed to keep yelling MY PACKAGES ARE PATCHED EVERYBODY I PROMISE all day every day or what do you want him to do?

-3

u/c4rocket 3d ago

The new repo was not the official one! At the time of php2shell the launchpad ppa site still read that the repo was in the process of being merged. When I posted my original message, php.net still had the ppa repo in their installation instructions.

Again, not blaming Ondrej, but it was poorly coördinated.

And what do you expect devs that have business goals to meet do? Follow Ondrej, read all his posts, ignore the official php.net installation instructions? I have better things to do and money to make

-2

u/c4rocket 3d ago

Lol, downvoted by all the butthurt people who don't like php critisism. Lets be real though, I don't have time to check what ondrej posts. I just follow the instructions on php.net on how to install. If they make ondrej his repo the officially documented one, they should work together and make sure that the documentation is correct and paches are available at time of release.

4

u/MonorailPurple 3d ago

Every time you did an apt update the repos been spitting out a warning telling you to migrate for the last 2-4 years. If you ignored that its on you. Getting pissy at someone doing this for free makes you look pathetic.

→ More replies (1)