Milos Novakovic
Milos Novakovic

Reputation: 31

How to install php5-gd in Wheezy Debian php 5.6

2 of my sites are not working bcs I can't install php5-gd library to Debian Wheezy php5.6 ...

I tried

aptitude install php5-gd, and system said i miss 2 dependencies, which i can not find or install...

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.

Upvotes: 3

Views: 1672

Answers (3)

Flak
Flak

Reputation: 2670

You should build it manually From: https://www.howtoforge.com/building-php-5.4-from-source-on-debian-squeeze

Upvotes: 0

Adam Katz
Adam Katz

Reputation: 16138

Wheezy is really out of date. It was released in 2013 and its support ended in 2018.

Here's a table imported from the Debian Long Term Support page:

support table, presented as text in the above link

Your best bet is to upgrade to buster (Debian 10, released July 2019 and (probably) supported through 2024.

Another option is to upgrade to jessie (released April 2015, security support ended 2018, community support ends June 2020), which would buy you a few months to replace your system with a newer one.

The final option, if you really need to stay on Wheezy, is to use backports or a carefully-pinned newer release for just the packages in question.

Since Wheezy is so old, there aren't any repositories still being hosted (there's probably an archive of it somewhere, but you won't get updates). I'll walk you through upgrading to Jessie and using its backports instead.

These instructions should work for any release, so you could (should!) use buster in place of jessie, though upgrading across so many releases will almost certainly require quite a bit of work.

1. Update your sources:

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

2. Add Jessie backports to one of those files if it doesn't yet exist:

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

3. Update and upgrade, ideally from outside X11 (e.g. the console at Ctrl+Alt+F2):

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

After that, you can then try to troubleshoot your system.

Upvotes: 2

MrPHP
MrPHP

Reputation: 972

Have you updated your apt-get first?

First, run:

sudo apt-get update

Then if that is successful run;

sudo apt-get upgrade

if you run df -lah

first, it may show your /boot is at 100% Try; sudo apt-get autoremove

then start from the start, and then try your php5-gd

When that fails Try :

sudo apt-get install -f

Upvotes: 2

Related Questions