首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Raspbian上安装php 7.2

无法在Raspbian上安装php 7.2
EN

Stack Overflow用户
提问于 2017-12-05 17:20:42
回答 0查看 11.2K关注 0票数 2

我无法在Raspbian上安装php 7.2。我使用了最新的Raspbian (发布日期: 2017-11-29)和Debian Stretch 9.1:https://www.raspberrypi.org/downloads/raspbian/

我遵循了https://www.colinodell.com/blog/2016-12/installing-php-7-1的说明:

代码语言:javascript
复制
apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
apt-get update

但当我尝试的时候

代码语言:javascript
复制
apt-get install -y php7.2

A获取以下错误:

代码语言:javascript
复制
root@raspberrypi:/home/pi# apt-get install -y php7.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.2 : Depends: libapache2-mod-php7.2 but it is not installable or
               php7.2-fpm but it is not installable or
               php7.2-cgi but it is not installable
      Depends: php7.2-common but it is not installable
E: Unable to correct problems, you have held broken packages.

有人能帮我吗?非常感谢

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47649984

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档