无法找到包php7.0

我有“Ubuntu 14.04.2 LTS”操作系统并尝试使用命令安装PHP7:

sudo apt-get install php-7.0 

收到错误消息:

 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' 

如何修复请指教。

在标准的Ubuntu存储库(2016-01-02)中,Ubuntu Trusty不支持PHP 7。

你可以使用PPA ppa:ondrej/php

 sudo apt-add-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.0