Unable to locate package php7.0 [duplicate]
I have "Ubuntu 14.04.2 LTS" OS and trying to install PHP7 using command:
sudo apt-get install php-7.0
Getting error message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-7.0
E: Couldn't find any package by regex 'php-7.0'
sudo apt-get install php7.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.0
E: Couldn't find any package by regex 'php7.0'
How it can be fix Please advise.
PHP 7 is not available for Ubuntu Trusty in the standard Ubuntu repositories (2016-01-02).
You could use the PPA ppa:ondrej/php
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0