Monday, August 7, 2017

apt - Unable to locate package php7.0


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

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...