Unable to locate package php7.4

Trying to follow LinuxBabe’s instructions for installing the LAMP stack (Linux flavor is Debian Buster). When trying to install php7.4, I get an error for each package she lists, starting with:

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’

And so on for each of the recommended packages. This is the same version of php specified on the NextCloud admin-manual page for installation on Linux. I double- and triple-checked the command line. What am I missing?

Hi @Alopez

Unfortunately, only PHP7.3 is included in the Debian 10 repositories. If you want to install newer versions, you can add the DEB.SURY.ORG repository to your system.


Hope that helps.


Thank you, @bb77 ! I saw a reference to that repository on one blog, but I wasn’t sure how reliable/safe that was, since I hadn’t heard of it before, and I wasn’t seeing anything about it on either debian or NextCloud sites.

Ondřej Surý is one of the maintainers of PHP in the official Debian Apt repositories. I’m using his repos for years and never had any issues.


Good to know, thanks!

1 Like