如何在Wheezy Debian PHP 5.6中安装php5-gd

时间:2019-08-18 08:41:13

标签: php debian

我的2个站点无法正常运行bcs,我无法将php5-gd库安装到Debian Wheezy php5.6 ...

我尝试过

aptitude安装php5-gd,系统提示我错过了2个依赖项,这些依赖项我找不到或安装...

aptitude install php5-gd

sudo apt-get install 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: libt1-5 (>= 5.1.0) but it is not installable

Depends: libvpx1 (>= 1.0.0) but it is not installable

E: Unable to correct problems, you have held broken packages.

3 个答案:

答案 0 :(得分:2)

真是 确实 过时了。它于2013年发布,其支持于2018年结束。

这是从Debian Long Term Support页导入的表格:

support table, presented as text in the above link

您最好的选择是升级到buster(Debian 10,于2019年7月发布,并可能在2024年得到支持)。

另一种选择是升级到jessie(于2015年4月发布,安全支持于2018年终止,社区支持于2020年6月终止),这将使您花几个月的时间用较新的系统替换您的系统。

如果您真的需要继续使用Wheezy,最后的选择是对有问题的软件包使用backports或精心固定的较新版本。

由于Wheezy太旧了,所以还没有托管任何存储库(可能在某个地方有它的存档,但您不会获得更新)。我将指导您升级到Jessie并使用其反向端口。

这些说明适用于任何发行版,因此,(应该!)可以使用buster代替jessie,尽管跨如此多的发行版进行升级几乎肯定需要大量工作。 / p>

1。更新您的来源:

$ find /etc/apt/sources.list* -name '*.list' |sudo xargs sed -i 's/wheezy/jessie/g'

2。如果尚未将Jessie反向移植添加到这些文件之一,则:

deb http://deb.debian.org/debian jessie-backports main

3。最好从X11外部进行更新和升级(例如,位于 Ctrl + Alt + F2 的控制台):

$ sudo apt-get clean
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get autoremove
$ sudo reboot

之后,您可以尝试对系统进行故障排除。

答案 1 :(得分:0)

您是否先更新了apt-get?

首先,运行:

sudo apt-get update

然后,如果运行成功;

sudo apt-get upgrade

如果您跑步     df -lah

首先,它可能表明您的/ boot处于100% 尝试;     sudo apt-get autoremove

然后从头开始,然后尝试php5-gd

如果失败 试试:

sudo apt-get install -f

答案 2 :(得分:0)