conFusl
Posts: 1
Joined: Fri Oct 07, 2016 9:53 pm

Update to libgd3 from 2.1.0.5 to 2.1.1

Fri Oct 07, 2016 9:56 pm

Hi,

I've installed Raspbian on my Raspberry Pi3. When I try to install php7.0-gd, I get the following error:
The following packages have unmet dependencies:
php7.0-gd : Depends: libgd3 (>= 2.1.1) but 2.1.0-5 is to be installed
E: Unable to correct problems, you have held broken packages.
The problem is, that apt-get update or apt-get upgrade does not help, because this version is the newest in the repository.

Can I update the version somehow?

BR

User avatar
rpdom
Posts: 17174
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Update to libgd3 from 2.1.0.5 to 2.1.1

Sat Oct 08, 2016 4:36 am

Where did you get php7.0-gd from? It's not available in Raspbian Jessie.

If you downloaded it manually from the Raspbian repository, then you have pulled in the Raspbian Stretch ("testing") version so you will either have to satisfy all the dependencies manually (like downloading and installing http://mirrordirector.raspbian.org/rasp ... _armhf.deb), or change your /etc/apt/sources.list to point at stretch as well as jessie and use apt pinning to hold everything at jessie unless needed (you will find details on the forums if you search for those terms). Or you could just risk going all out for Stretch and be prepared for the occasional breakage when new bugs occur.

mikeschinkel
Posts: 3
Joined: Sat Aug 27, 2016 4:43 pm

Re: Update to libgd3 from 2.1.0.5 to 2.1.1

Fri Oct 21, 2016 5:38 am

From StackOverflow, try this before attempting to install php70.-gd:

Code: Select all

sudo apt-get -t jessie-backports install libgd3

negrotico19
Posts: 4
Joined: Fri Nov 11, 2016 6:43 am

Re: Update to libgd3 from 2.1.0.5 to 2.1.1

Fri Nov 11, 2016 6:46 am

Then answer provided by @mikeschinkel works for me.
It fixes the dependency of libgd3

Return to “Raspberry Pi OS”