【问题标题】:Unable to install php-5 phalcon for ubuntu 16.04无法为 ubuntu 16.04 安装 php-5 phalcon
【发布时间】:2017-09-15 08:30:12
【问题描述】:

我的机器在 ubuntu 16.04 上运行并且我已经安装了 php 5.6,但是当我尝试运行安装 php5-phalcon 时,它返回了找不到包的错误。

以下是我运行的命令

sudo apt-get install php5-phalcon

它返回以下输出

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php5-phalcon

【问题讨论】:

标签: php ubuntu-16.04 phalcon


【解决方案1】:

您需要先添加正确的存储库...

curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | sudo bash

sudo apt-get install php5-phalcon

# Ubuntu 16.04+, Debian 9+
sudo apt-get install php7.0-phalcon

(来自https://phalconphp.com/en/download/linux

【讨论】:

  • 我试过了,但这不起作用可能是因为 php5-phalcon 不适用于 ubuntu 16.04,因此将我的 php 版本移至 7+。
  • 对不起 - 我已经从页面添加了接下来的几行,你的权利 5 不可用,但 php7.0-phalcon 是。
【解决方案2】:

尝试了几种方法,发现 php5.6-phalcon 无法用于 ubuntu 16.04,以下是安装 php7.0-phalcon 的步骤:

curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | sudo bash

# Ubuntu 16.04+, Debian 9+
sudo apt-get install php7.0-phalcon

【讨论】:

    猜你喜欢
    • 2018-09-15
    • 2017-01-13
    • 2023-04-10
    • 2018-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多