T
T
Theory Theory2020-11-03 08:13:42
PHP
Theory Theory, 2020-11-03 08:13:42

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

3 answer(s)
D
Dr. Bacon, 2020-11-03
@Narbek

You write one thing here, but you enter another, the error says that you write php-7.2, not php7.2

S
Sanes, 2020-11-03
@Sanes

sudo apt-get update

V
Valdemar Smorman, 2020-11-03
@smorman

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 question

Ask a Question

731 491 924 answers to any question