PPA's are getting Deprecated (Apache and PHP)

Hello,

I just did an apt update, and it warned me that the below PPAs are getting deprecated. Is this something that needs to be addressed?

Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]                                                                 
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]                                                                                    
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease                                                                                           
Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease                                                                                              
Hit:6 https://repo.tangopbx.org/repository/TangoPBX_22.04 jammy InRelease                                                                 
Get:7 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [3750 kB]
Get:8 https://ppa.launchpadcontent.net/ondrej/apache2/ubuntu jammy InRelease [24.6 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [521 kB]
E: Repository 'https://ppa.launchpadcontent.net/ondrej/apache2/ubuntu jammy InRelease' changed its 'Label' value from 'PPA for Apache 2' to 'PPA for Apache 2 (deprecated)'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Get:10 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [6659 kB]                                                                
Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [1283 kB]                                                                
Get:12 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease [24.6 kB]                                                                        
E: Repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease' changed its 'Label' value from 'PPA for PHP' to 'PPA for PHP (deprecated)'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Get:13 https://ppa.launchpadcontent.net/ondrej/apache2/ubuntu jammy/main amd64 Packages [6392 B]                                                           
Get:14 https://ppa.launchpadcontent.net/ondrej/apache2/ubuntu jammy/main Translation-en [3684 B]                                                           
Get:15 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 Packages [244 kB]                                                               
Get:16 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main Translation-en [47.9 kB]                                                              
Fetched 12.8 MB in 34s (374 kB/s)                                                                                                                          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
18 packages can be upgraded. Run 'apt list --upgradable' to see them.

Not all PPA’s are getting deprecated. Ondrej announced at the beginning of the year everything (the packages they maintain) is moving to a singular repository so they weren’t maintaining multiple ones as they have been. PPA’s in general are still very active and supported but certain maintainers have moved, like Ondrej has.

For Ubuntu 22 (jammy) or Ubuntu 24 (noble)

apt update --allow-releaseinfo-change
curl -fsSLo /usr/share/keyrings/deb.sury.org-apache2.gpg https://sury.org
echo "deb \[signed-by=/usr/share/keyrings/deb.sury.org-apache2.gpg\] https://sury.org $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/apache2.list
add-apt-repository --remove ppa:ondrej/apache2
apt update

So just to be clear, the TangoPBX Distro recommends changing to the repositories you listed?

Well, since it’s pointing to a repo that is being deprecated and not one from ClearlyIP I would say you’d want to update to continue getting proper updates without the worry of them failing. As of the start of this month the Sury PPA’s are frozen. You will not be able to get any new updates or security releases from the PPA. So you’d have to update the Apache repos as well, almost the same process.

Your other option is to wait for a new ISO or for 14IP to drop something in their repos to make this change. Until then though the Sury PPA’s are frozen and don’t get updates or security fixes.

Here’s what you need for Apache. I updated the PHP one to be more universal.

apt update --allow-releaseinfo-change 
curl -fsSLo /usr/share/keyrings/deb.sury.org-apache2.gpg https://sury.org 
echo "deb \[signed-by=/usr/share/keyrings/deb.sury.org-apache2.gpg\] https://sury.org $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/apache2.list 
add-apt-repository --remove -y ppa:ondrej/apache2 
apt update