1

Need some help, I cant install php8.2-fpm in ubuntu 18, heres my commands

sudo apt install lsb-release apt-transport-https ca-certificates software-properties-common -y
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.2

here is the response

$ sudo apt-get install php8.2 php8.2-fpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php8.2
E: Couldn't find any package by glob 'php8.2'
E: Couldn't find any package by regex 'php8.2'
E: Unable to locate package php8.2-fpm
E: Couldn't find any package by glob 'php8.2-fpm'
E: Couldn't find any package by regex 'php8.2-fpm'

rkevx21
  • 2,441
  • 5
  • 19
  • 40
  • PHP 8.2 is not supported by Canonical for Ubuntu 18.04. You can get it from Ondrj's repository: https://launchpad.net/~ondrej/+archive/ubuntu/php – Tangentially Perpendicular Aug 09 '23 at 03:46
  • @TangentiallyPerpendicular That PPA no longer carries packages for 18.04, because that version of Ubuntu has been marked end of life. – IMSoP Aug 14 '23 at 10:01
  • While I sympathise with the view that this is a system administration, rather than a programming problem, I believe it falls into the "software tools primarily used by programmers" clause, and should not be closed. On a purely pragmatic level, it is already the target of several duplicates; closing it implies each should instead be closed as off-topic, but that seems like it would benefit neither the users asking, nor the site as a whole. – IMSoP Aug 29 '23 at 11:31

1 Answers1

3

Ubuntu 18.04 (Bionic Beaver) is now no longer supported outside of paid extended support plans. Ondřej Surý's PHP packages are only available for supported versions of Ubuntu, so are no longer available for Ubuntu 18.04.

This is also discussed in the FAQ for that repository, with details of why the files are immediately unavailable:

But it's "just a file"...

No, it's never "just a file". It's a security risk. Security issues are regularly found in PHP releases and any "just a file" might accumulate a wealth of them. That's OK, every software has bugs, and henceforth needs to be update on regular basis.

It would be irresponsible to provide unmaintained packages just for "convenience". It would also create additional burden on the maintainer of this repository because instead of "why the packages are not available" this would just generate questions like "why the package are not updated".

It's not "just a file".

You will have to either pay for extended support, or update to a newer version of Ubuntu.

IMSoP
  • 89,526
  • 13
  • 117
  • 169
  • i face the same problem with my Dockerfile, which is based on Bionic, after upgrade it to Focal, it's fixed my problem – maximalyono Aug 20 '23 at 01:53