Raspbian에 php 7.2를 설치할 수 없습니다. 나는 마지막 Raspbian (출시일 : 2017년 11월 29일) 사용과를 데비안 스트레치 9.1 :Raspbian에 PHP 7.2를 설치할 수 없습니다.
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.2
: 나는
https://www.colinodell.com/blog/2016-12/installing-php-7-1의 지침을 따라
https://www.raspberrypi.org/downloads/raspbian/
A가 다음 오류를받습니다.
[email protected]:/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.
누군가 나를 도울 수 있습니까? 덕분에 많은
ARM 바이너리를 제공하는 저장소입니까? 확실하지 않습니다. 설치 이유가 없습니다. –
편집 : 분명히 그렇습니다. 'lsb_release -sc'가 "stretch"를 리턴했는지 확인 했습니까? 'apt-get update '도이 repo를 다운로드 했습니까? –
예, "Stretch"를 반환합니다. – dicotout