I am using Ubuntu 18.04 and want to install PHP 8.1 but I am getting this error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php8.1
E: Couldn't find any package by glob 'php8.1'
E: Couldn't find any package by regex 'php8.1'
I tried many ways to solve it but whenever I try to install php it gives same kind of error
@josecameselle The ondrej ppa will no longer let you install PHP8.1 on Ubuntu 18. I just ran into this same issue a few days ago, too. Ubuntu 18 ended standard support earlier this year and they don't provide builds past the lifetime of the distribution.