I need to upgrade my server (debian 9) php version from 7.0 to 7.1 at least, but it seems that apt doesn't find any version. I did:
apt update
apt upgrade
And now if I do apt install php7
or
apt install php 7.1
(or 7.2 or 7.3 or 7.4)
or even
apt install php 7.0
(that is the installed version)
I have that message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.3
E: Couldn't find any package by glob 'php7.3'
E: Couldn't find any package by regex 'php7.3'
Something must be broken but I don't find, I googled but I only find for ubuntu that it is needed to add ppa:ondrej
EDIT: I understand that I should update debian to 10 because debian 9 is no more supported and that it's risky (for most cases) to keep out of date sofwtares.