如何修复无法安装debian的php gd

如何修复无法安装debian的php gd,php,php-gd,Php,Php Gd,我知道这个问题已经被问过了,但没有一个对我有用的答案,我不能评论,因为我没有足够的声誉 我无法在服务器上安装php gd扩展 我在Debian8上有PHP7.1 下面是我尝试安装它时运行的命令 sudo apt get install php7.1-gd 这是输出 Building dependency tree Reading state information... Done The following packages were automatically installed and ar

我知道这个问题已经被问过了,但没有一个对我有用的答案,我不能评论,因为我没有足够的声誉

我无法在服务器上安装php gd扩展

我在Debian8上有PHP7.1

下面是我尝试安装它时运行的命令

sudo apt get install php7.1-gd

这是输出

Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libelf1 libfontenc1 libgl1-mesa-dri libgl1-mesa-glx
  libglapi-mesa libice6 libpciaccess0 libsm6 libtxc-dxtn-s2tc0 libutempter0 libx11-xcb1 libxaw7 libxcb-dri2-0
  libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-shape0 libxcb-sync1 libxcomposite1 libxcursor1 libxdamage1
  libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxkbfile1 libxmu6 libxrandr2 libxrender1 libxshmfence1 libxt6
  libxtst6 libxv1 libxxf86dga1 libxxf86vm1 vnc4server x11-apps x11-common x11-session-utils x11-utils x11-xkb-utils
  x11-xserver-utils xbase-clients xbitmaps xfonts-base xfonts-encodings xfonts-utils xinit xterm
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  php7.1-gd
0 upgraded, 1 newly installed, 0 to remove and 164 not upgraded.
Need to get 27.7 kB of archives.
After this operation, 138 kB of additional disk space will be used.
Get:1 https://packages.sury.org/php/ jessie/main php7.1-gd amd64 7.1.15-1+0~20180306120119.15+jessie~1.gbp78327e [27.7 kB]
Err https://packages.sury.org/php/ jessie/main php7.1-gd amd64 7.1.15-1+0~20180306120119.15+jessie~1.gbp78327e
  HttpError404
E: Failed to fetch https://packages.sury.org/php/pool/main/p/php7.1/php7.1-gd_7.1.15-1+0~20180306120119.15+jessie~1.gbp78327e_amd64.deb  HttpError404

有什么好办法吗?

在我看来,你可能需要向维护它的人报告repo@RiggsFolly是的,我正在努力修复我的问题。我读到这个sury.org几乎是Debian的事实上的PHP回购——很惊讶你在GD上得到了404——尽管这个空间对我来说很可疑org/PHP/jessie/(在PHP/和jessie之间);您的install命令看起来是正确的。@CD001我认为这对于APT来说是正常的。它会命中repo的根,然后是一个空格,然后是发行版和其他诸如此类的东西。例如,从安装“xcowsay”包:
Get:1http://archive.ubuntu.com/ubuntu 仿生/主要amd64 libxinerama1 amd64 2:1.1.3-1[7908 B]