0

I am trying to install php 7.4 on ubuntu 18.04 using the following PPA.

sudo add-apt-repository ppa:sergey-dryabzhinsky/php74
sudo add-apt-repository ppa:sergey-dryabzhinsky/php7-modules
sudo add-apt-repository ppa:sergey-dryabzhinsky/backports
sudo add-apt-repository ppa:sergey-dryabzhinsky/packages

You can find this article

After adding above repository php 7.4 was installed but not able to install FPM i got the following error:

sudo apt install php74p-fpm

Reading package lists... Done
Building dependency tree       
Reading state information... Done
php74p-fpm is already the newest version (7.4.33-0sergeyd6.1~18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up php74-fpm (7.4.33-0sergeyd6.1~18.04.1) ...
update-rc.d: error: unable to read /etc/init.d/php74-fpm
dpkg: error processing package php74-fpm (--configure):
 installed php74-fpm package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of php74p-fpm:
 php74p-fpm depends on php74-fpm; however:
  Package php74-fpm is not configured yet.

dpkg: error processing package php74p-fpm (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 php74-fpm
 php74p-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
Jay Sheth
  • 21
  • 1
  • 4
  • Try using the following ppa: `ppa:ondrej/php`. See the following link for a complete tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-php-7-4-and-set-up-a-local-development-environment-on-ubuntu-18-04 – ag00se Aug 10 '23 at 12:12
  • I have already tried this support of php7.4 is removed for Ubuntu 18.04. I got this error E: Unable to locate package php7.4 E: Couldn't find any package by glob 'php7.4' E: Couldn't find any package by regex 'php7.4' – Jay Sheth Aug 10 '23 at 12:26
  • Per the [that repo](https://launchpad.net/~ondrej/+archive/ubuntu/php): "Only Supported Versions of PHP for Supported Ubuntu Releases are provided. Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided." Since 7.4 is EOL, `ondrej/php` can't be used, as you found. Maybe try `jczaplicki/xenial-php74-temp`: https://stackoverflow.com/a/68718025/231316? – Chris Haas Aug 10 '23 at 13:10
  • @ChrisHaas Does this work with Ubuntu 18.04? as it is mentioned for Ubuntu 16.04. – Jay Sheth Aug 10 '23 at 13:25
  • You're right, look like 16.04 only, not sure if anyone is doing this for 18.04 – Chris Haas Aug 10 '23 at 14:19

0 Answers0