Score:0

How to check if ppa:ondrej/php repository is added successfully?

be flag

I'm trying to install PHP 7.4 on Ubuntu 18.04. I've executed the following command:

sudo add-apt-repository ppa:ondrej/php

It looks finished successfully. After that I update the apt by:

apt update

And finally when I want to install PHP 7.4, by by the following command:

sudo apt install php7.4

It throws:

Reading package lists... Done
Building dependency tree
Reading state information... Done
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'

enter image description here

Any idea what's the issue? Should I update Ubuntu sources.list? Is any issue related to ppa:ondrej/php repo?

guiverc avatar
cn flag
Don't forget Ubuntu 18.04 is EOSS, the PPA you mention provides support only for LTS releases in *standard* support, ie. check https://launchpad.net/~ondrej/+archive/ubuntu/php and you'll note support for 20.04 & 22.04 only.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.