Php GD library

my linode does not have the php5-gd library installed.

I executed sudo apt-get install php5-gd

That yielded the following result
> The following packages have unmet dependencies:

php5-gd: Depends: phpapi-20090626+lfs

Depends: php5-common (= 5.3.2-1ubuntu4.2) but 5.2.10.dfsg.1-2ubuntu6 is to be installed

Can someone please help me with this issue ?

6 Replies

@sisko:

Can someone please help me with this issue ?

worked for me on Lucid Lynx after an "apt-get update" and an "apt-get upgrade" as shown below:
> root@none:~ # apt-get install php5-gd

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following extra packages will be installed:

libapache2-mod-php5 php5-common

Suggested packages:

php-pear php5-suhosin

The following NEW packages will be installed:

libapache2-mod-php5 php5-common php5-gd

0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.

Need to get 3407kB of archives.

After this operation, 8925kB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://archive.ubuntu.com/ubuntu/ lucid/main php5-common 5.3.2-1ubuntu4 [541kB]

Get:2 http://archive.ubuntu.com/ubuntu/ lucid/main libapache2-mod-php5 5.3.2-1ubuntu4 [2831kB]

Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main php5-gd 5.3.2-1ubuntu4 [34.7kB]

Fetched 3407kB in 2s (1484kB/s)

Selecting previously deselected package php5-common.

(Reading database … 124232 files and directories currently installed.)

Unpacking php5-common (from …/php5-common5.3.2-1ubuntu4i386.deb) …

Selecting previously deselected package libapache2-mod-php5.

Unpacking libapache2-mod-php5 (from …/libapache2-mod-php55.3.2-1ubuntu4i386.deb) …

Selecting previously deselected package php5-gd.

Unpacking php5-gd (from …/php5-gd5.3.2-1ubuntu4i386.deb) …

Setting up php5-common (5.3.2-1ubuntu4) …

Setting up libapache2-mod-php5 (5.3.2-1ubuntu4) …

Creating config file /etc/php5/apache2/php.ini with new version

  • Reloading web server config apache2

Are you using Lucid Lynx?

James

@zunzun:

@sisko:

Can someone please help me with this issue ?

worked for me on Lucid Lynx after an "apt-get update" and an "apt-get upgrade" as shown below:
> root@none:~ # apt-get install php5-gd

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following extra packages will be installed:

libapache2-mod-php5 php5-common

Suggested packages:

php-pear php5-suhosin

The following NEW packages will be installed:

libapache2-mod-php5 php5-common php5-gd

0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.

Need to get 3407kB of archives.

After this operation, 8925kB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://archive.ubuntu.com/ubuntu/ lucid/main php5-common 5.3.2-1ubuntu4 [541kB]

Get:2 http://archive.ubuntu.com/ubuntu/ lucid/main libapache2-mod-php5 5.3.2-1ubuntu4 [2831kB]

Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main php5-gd 5.3.2-1ubuntu4 [34.7kB]

Fetched 3407kB in 2s (1484kB/s)

Selecting previously deselected package php5-common.

(Reading database … 124232 files and directories currently installed.)

Unpacking php5-common (from …/php5-common5.3.2-1ubuntu4i386.deb) …

Selecting previously deselected package libapache2-mod-php5.

Unpacking libapache2-mod-php5 (from …/libapache2-mod-php55.3.2-1ubuntu4i386.deb) …

Selecting previously deselected package php5-gd.

Unpacking php5-gd (from …/php5-gd5.3.2-1ubuntu4i386.deb) …

Setting up php5-common (5.3.2-1ubuntu4) …

Setting up libapache2-mod-php5 (5.3.2-1ubuntu4) …

Creating config file /etc/php5/apache2/php.ini with new version

  • Reloading web server config apache2

Are you using Lucid Lynx?

James

Yes, I am on Lucid Lynx ( ubuntu 10 ).

I tried the 3 commands you suggested but I got the same result

Guys,

please help if you can. This issue is holding up all my work !

Post your /etc/apt/sources.list and /etc/apt/preferences (if it exists)

@Alucard:

Post your /etc/apt/sources.list and /etc/apt/preferences (if it exists)

/etc/apt/sources.list:

## main & restricted repositories
deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted

## universe repositories
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe

deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe

it is written here: http://library.linode.com/web-applicati … 0.04-lucid">http://library.linode.com/web-applications/control-panels/ispconfig/ubuntu-10.04-lucid

and when I try to install gd:

apt-get update
apt-get upgrade --show-upgraded
apt-get install php5-gd

Returns:

root@sgustok:/# 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: php5-common (= 5.3.2-1ubuntu4) but 5.3.2-1ubuntu4.2 is to be installed
E: Broken packages

I have Ubuntu 10.04.

What can I do to install gd?

Your sources.list is broken. You need to have lucid-updates for main & restricted also!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct