PPA for Apache 2 (deprecated)

Hello. I have just a new message with the recent update I made.

apt update

Hit:1 
 jammy InRelease
Hit:2 
 jammy-updates InRelease
Hit:3 
 jammy-backports InRelease
Get:4 
 jammy InRelease [6 060 B]
Hit:5 
 jammy InRelease
Get:6 
 jammy-apps-security InRelease [8 377 B]
Get:7 
 jammy-apps-updates InRelease [8 208 B]
Get:8 
 jammy-infra-security InRelease [8 298 B]
Hit:9 https://apt.hestiacp.com jammy InRelease
Get:10 
 jammy-infra-updates InRelease [8 201 B]
Get:11 
 jammy-security InRelease [129 kB]
Get:12 
 jammy InRelease [24,6 kB]
Get:13 
 jammy/main amd64 Packages [145 kB]
Hit:14 
 jammy InRelease
E: Repository '
 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] ^C

# cat /etc/apt/sources.list.d/apache2.list

deb 
 jammy main

Should I just comment this ppa line? I think apache2 is provided for jammy with this line

Get:14 https://packages.sury.org/php jammy/main amd64 Packages [145 kB]

True?

Thanks.
(this servor will disabled in some days)

Yes

No, Apache2 is not provided by that repository, but it does provide libapache2-mod-phpX.Y packages. Maybe your server is still using one of them. It shouldn’t be, but that server might be old enough to still rely on it.

Anyway, you don’t need the depecrated repo so comment it out or remove it.

ChatGPT had said me to do a : echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/apache2/` $(lsb_release -sc) main" > /etc/apt/sources.list.d/apache2.list`

I pointed this page that had just been refreshed: https://launchpad.net/~ondrej/+archive/ubuntu/apache2

It’s ok I suppose?

If you don’t use the apache provided but that repo you don’t need it.

Show the output of this command:

dpkg -l | grep apache2
# dpkg -l | grep apache2
ii  apache2                                2.4.71-1+ubuntu22.04.1+deb.sury.org+1                     amd64        Apache HTTP Server
ii  apache2-bin                            2.4.71-1+ubuntu22.04.1+deb.sury.org+1                     amd64        Apache HTTP Server (modules and other binary files)
ii  apache2-data                           2.4.71-1+ubuntu22.04.1+deb.sury.org+1                     all          Apache HTTP Server (common files)
ii  apache2-suexec-custom                  2.4.71-1+ubuntu22.04.1+deb.sury.org+1                     amd64        Apache HTTP Server configurable suexec program for mod_suexec
ii  apache2-utils                          2.4.71-1+ubuntu22.04.1+deb.sury.org+1                     amd64        Apache HTTP Server (utility programs for web servers)
ii  libapache2-mod-fcgid                   1:2.3.9-4                                                 amd64        FastCGI interface module for Apache 2
ii  libapache2-mod-php8.1                  8.1.34-14+debsuryorg22.04.1+php+1                         amd64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  libapache2-mod-php8.2                  8.2.36-2+debsuryorg22.04.1+php+1                          amd64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  libapache2-mod-rpaf                    0.6-13                                                    amd64        module for Apache2 which takes the last IP from the 'X-Forwarded-For' header

Yes, keep the new repo because you are using it.