【发布时间】:2019-08-18 08:41:13
【问题描述】:
我的 2 个站点无法正常工作,因为我无法将 php5-gd 库安装到 Debian Wheezy php5.6 ...
我试过了
aptitude install 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.
【问题讨论】:
-
你能运行
apt-cache policy php5-gd并更新你得到的输出吗? -
您是否以某种方式更改了您的 apt-source?看起来像是 Wheezy 和 Jessie 的一些混合存储库!
-
我怀疑操作员是否会回应.. 这似乎是他发送的唯一消息。顺便说一句,我有同样的问题:没有从旧版 wheezy 更改存储库,
apt-cache结果已安装:(无),候选:(无),版本表为空。 -
@Ivan(和@Milos)——Wheezy 太老了。升级或至少将更新的版本添加到您的源中,以便您可以选择更新的软件包;详情请参阅my answer。
-
@Ivan 从字面上看,这一切都是危险的,不建议过时的。您需要同时升级到 PHP 版本和非 EOL 操作系统。