我无法在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的说明:
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但当我尝试的时候
apt-get install -y php7.2A获取以下错误:
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.有人能帮我吗?非常感谢
https://stackoverflow.com/questions/47649984
复制相似问题