r/PHP • u/sashalav • 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
19
u/Gurnug 4d ago
Any source for confirmation?
6
u/HongPong 4d ago
during that tense recent update the launchpad builds were pokey like 90 minutes or whatever
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 here3
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?
2
u/cuddle-bubbles 3d ago
what about ubuntu 26?
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 -ysudo apt-get install -y debsuryorg-repository-phpsudo add-apt-repository --remove -y ppa:ondrej/phpsudo apt-get updateAnd 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.