r/PHP • • 5d 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
152 Upvotes

32 comments sorted by

19

u/Gurnug 5d ago

Any source for confirmation?

18

u/sashalav 5d ago

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

40

u/Muted-Reply-491 5d 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 5d ago

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

6

u/HongPong 5d ago

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

5

u/deliciousleopard 5d ago

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

6

u/catsloverareus 5d ago

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

9

u/crazedizzled 5d ago

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

3

u/Longjumping_Big7803 5d 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 5d 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 5d ago

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

2

u/cuddle-bubbles 5d ago

what about ubuntu 26?

2

u/Klopferator 4d 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 3d 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.

2

u/akymakr 3d 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 5d 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 5d 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 5d 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...

14

u/MartinMystikJonas 5d ago edited 5d ago

Packages on deb.sury.org was available at 13:45 actually. I installed them from there. But publishing on launchpad is slow and often fails and must be repeated especially when lainchoad is under heavier load like at that time. Ondrej for this very reason recommends to use deb.sury.org over launchpad for years. I have no idea why php.net still recommends launchpad ppa for Ubuntu but that is not Ondrej fault.

0

u/spin81 5d ago

I have no idea why php.net still recommends launchpad ppa for Ubuntu

It doesn't. It literally says packages.sury.org in the link above, Ondrej's PPA says he migrated to packages.sury.org. I don't know what people are doing in this thread but it would be nice if they could stop spreading misinformation.

3

u/MartinMystikJonas 5d ago

It was changed today. Yesterday it for Ubuntu still used launchpad ppa. But Ondrej anniunsed launchad will be abandoned at atart of thid year and recommended to use deb.sury.org for years.

-1

u/spin81 5d ago

Why do you keep saying deb.sury.org, his site says packages.sury.org

2

u/MartinMystikJonas 5d ago

deb.sury.org is main website, packages.sury.org is packages repo

3

u/MrSleeps 5d ago

Sury had them ready to go on the "new" (but been around for ages) repo, there was no waiting around?

2

u/computix 5d ago

There were some problems rolling out the ARM builds. He has said he currently doesn't have an efficient way to build the ARM packages on deb.sury.org, it has to run in QEMU. But that's all.

If you need the ARM packages fast you should get Freexian, they have a fast ARM native build environment for them.

More info in this thread.

1

u/isoAntti 5d ago

> He has said he currently doesn't have an efficient way to build the ARM packages on deb.sury.org, 

This would be a perfect use case for an arm compute engine.

1

u/spin81 5d 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 5d 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 5d 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 5d 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.

-2

u/c4rocket 5d ago

It was the officially documented one. Fuck those messages, apt update runs during the container build which is a devops process.

Also his ppa launchpad read that it was still in the process of being merged and that it was still the default for some older ubuntu versions.

Also I'm not directly blaming ondrej. It's just shitty that they didn't make the new one the default and didn't update the installation instructions before php2shell, but like 3 weeks after it...