无法找到包 php7.0

无法找到包 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'

如何修复,请指教。

答案1

标准 Ubuntu 存储库 (2016-01-02) 中的 Ubuntu Trusty 不提供 PHP 7。

你可以使用 PPAppa:ondrej/php

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

相关内容