【发布时间】:2018-05-02 16:16:05
【问题描述】:
我想在 Linode Server Debian 9 上安装 GD Library for php5.6
我跑apt-get install php5.6-gd
输出是:
php5.6-gd : Depends: libgd3 (>= 2.1.1) but it is not going to be installed
然后我尝试安装该软件包apt-get install libgd3
输出是:
libgd3 : Depends: libfontconfig1 (>= 2.11.94) but 2.11.0-6.7+b1 is to be installed
Depends: libjpeg8 (>= 8c) but it is not installable
我尝试通过运行命令apt-get install libfontconfig1=2.11.94来安装提到的版本
输出是:
Version '2.11.94' for 'libfontconfig1' was not found
我通过运行检查了 libfontconfig1 包的可用版本:
apt-cache policy libfontconfig1
输出是:
libfontconfig1:
Installed: 2.11.0-6.7+b1
Candidate: 2.11.0-6.7+b1
Version table:
2.11.0-6.7+b1 500
500 http://mirrors.linode.com/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status
我没有找到可用的 (>= 2.11.94) 版本。
cat /etc/apt/sources.list
的输出# deb http://mirrors.linode.com/debian/ stretch main
deb http://mirrors.linode.com/debian/ stretch main
deb-src http://mirrors.linode.com/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
deb http://ftp.de.debian.org/debian stretch main
cat /etc/apt/sources.list.d/*enter image description here的输出
【问题讨论】:
-
欢迎来到stackoverflow,请edit here添加
cat /etc/apt/sources.list和cat /etc/apt/sources.list.d/*的输出 -
这个解决方案stackoverflow.com/a/47388417/6932646 仍然对我有用
标签: linux debian gd php-5.6 linode