PHP5-Debian 测试中的 GD 缺少依赖项 libvpx1

PHP5-GD in Debian Testing missing Dependency libvpx1

我 运行 在我的开发服务器上进行 Debian 测试。不幸的是,我必须同时使用 mysqli(不包含在 php7 中)和 php-gd。

猫/etc/issue

Debian GNU/Linux stretch/sid

apt-get 安装 php5-gd

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:
 php5-gd : Depends: libvpx1 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

更多sources.list

deb http://ftp.de.debian.org/debian testing main contrib non-free
deb-src http://ftp.de.debian.org/debian testing main contrib non-free

deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

我在某处找到了信息,即所需的 libvpx1 不再包含在测试中。但我仍然需要它。似乎我将不得不以某种方式手动安装它。您会推荐哪种方式?

顺便说一句,apt-get install -f 等并不能解决问题,因为 libvpx1 根本没有包含在测试中。 https://packages.debian.org/sid/libvpx1

好的,这个很简单:

wget http://ftp.de.debian.org/debian/pool/main/libv/libvpx/libvpx1_1.3.0-3_amd64.deb
sudo dpkg -i libvpx1_1.3.0-3_amd64.deb
apt-get install php5-gd

成功了。