【问题标题】:unable to install php 7.2 in my ubuntu 14.04 repo error occred无法在我的 ubuntu 14.04 repo 中安装 php 7.2 发生错误
【发布时间】:2019-05-28 12:02:40
【问题描述】:

我无法在我的 Ubuntu 14.04 上安装 php 7.2

root@OD033:/etc/php# sudo apt-get install php7.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php7.2
E: Couldn't find any package by regex 'php7.2'
root@OD033:/etc/php#

【问题讨论】:

标签: php ubuntu php-7.2


【解决方案1】:

不要添加版本,只需运行sudo apt install php 它将安装最新版本。如果您想在 apt install 中添加版本,请执行以下操作

sudo add-apt-repository ppa:ondrej/php
sudo apt update

然后你就可以安装你需要的任何版本了。

【讨论】:

  • getting issue dev32@OD032:~$ sudo apt install php Reading package lists... Done Building dependency tree Reading state information... Done Package php是一个虚拟包,由:php5.6 5.6提供.33-3+ubuntu14.04.1+deb.sury.org+1 php7.1 7.1.27-1+ubuntu14.04.1+deb.sury.org+1 你应该明确选择一个来安装。 E: 包 'php' 没有安装候选
  • 您是否测试过这些行:sudo add-apt-repository ppa:ondrej/php sudo apt update
【解决方案2】:

目前,ondrej 存储库不支持 Ubuntu 14.04,因为它已达到生命周期,因此您无法使用它们。您可以从源代码编译或升级您的发行版。

【讨论】:

  • 有没有办法在 Ubuntu 14.04 上安装 php7.2?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-04-06
  • 1970-01-01
  • 1970-01-01
  • 2015-12-21
  • 2016-10-18
  • 1970-01-01
相关资源
最近更新 更多