首页 > 解决方案 > 如何在 Wheezy Debian php 5.6 中安装 php5-gd

问题描述

我的 2 个站点无法运行 bcs 我无法将 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.

标签: phpdebiangdphp-gd

解决方案


你有没有先更新你的 apt-get ?

第一次运行:

sudo apt-get update

然后如果成功运行;

sudo apt-get upgrade

如果你运行 df -lah

首先,它可能会显示您的 /boot 处于 100% 尝试;sudo apt-get 自动删除

然后从头开始,然后试试你的php5-gd

当失败时尝试:

sudo apt-get install -f

推荐阅读