gpt4 book ai didi

linux - 在 Linode 服务器 Debian 9 上为 php5.6 安装 GD 库时依赖关系中断

转载 作者:太空宇宙 更新时间:2023-11-04 12:16:09 26 4
gpt4 key购买 nike

我想在 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

最佳答案

问题是 http://ppa.launchpad.net/ondrej/php/ubuntu包含有冲突的 libgd3 版本。

vagrant@localhost:~$ sudo apt-cache policy libgd3
libgd3:
Installed: (none)
Candidate: 2.2.5-3+ubuntu16.04.1+deb.sury.org+1
Version table:
2.2.5-3+ubuntu16.04.1+deb.sury.org+1 500
500 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages
2.2.4-2+deb9u2 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

您需要从官方存储库安装版本,如下所示:

vagrant@localhost:~$ sudo apt-get install libgd3=2.2.4-2+deb9u2

希望对您有所帮助。

关于linux - 在 Linode 服务器 Debian 9 上为 php5.6 安装 GD 库时依赖关系中断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47375168/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com