Answer the question
In order to leave comments, you need to log in
Can't download php7.2 on ubuntu 16?
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2
Error: Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php -7.2
E: Couldn't find any package by regex 'php-7.2'
Answer the question
In order to leave comments, you need to log in
You write one thing here, but you enter another, the error says that you write php-7.2, not php7.2
cd /etc/apt/sources.list.d; echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu $(lsb_release -cs) main" | sudo tee php.list > /dev/null; sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com:443 4F4EA0AAE5267A6C; cd; sleep 10; sudo apt update; sudo apt install php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question