无法在Debian Stretch上安装PHP 7.1

时间:2018-04-13 14:42:05

标签: php debian libc debian-stretch

我试图在Debian上安装PHP 7.1,我收到此错误:

root@67a59862eeed:/var/www# apt install php7.1-apcu php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-intl php7.1-mcrypt php7.1-mysql php7.1-soap php7.1-xml php7.1-zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php-apcu' instead of 'php7.1-apcu'
php7.1-gd is already the newest version (7.1.16-1+ubuntu18.04.1+deb.sury.org+1).
php7.1-mysql is already the newest version (7.1.16-1+ubuntu18.04.1+deb.sury.org+1).
php7.1-xml is already the newest version (7.1.16-1+ubuntu18.04.1+deb.sury.org+1).
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.1-cli : Depends: php7.1-opcache but it is not going to be installed
              Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
 php7.1-curl : Depends: libcurl4 (>= 7.44.0) but it is not installable
 php7.1-fpm : Depends: php7.1-opcache but it is not going to be installed
              Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
 php7.1-intl : Depends: libicu60 (>= 60.1-1~) but it is not installable
 php7.1-zip : Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed

以下是我正在做的事情:

$ apt install apt-transport-https ca-certificates
$ wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
$ sh -c 'echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list'
$ apt update

似乎我当前版本的libc6是最新版本(2.24-11)。我不知道如何解决这个问题。

你能帮我吗?

0 个答案:

没有答案
相关问题