Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to install Image Magick.

$ sudo apt-get install php5-imagick
The following packages have unmet dependencies.
  php5-imagick: Depends: libfontconfig1 (>= 2.8.0) but 2.6.0-3 is to be installed
                Depends: libjpeg62 (>= 6b1) but 6b-14 is to be installed
                Depends: libltdl7 (>= 2.2.6b) but it is not installable
                Depends: libmagickcore3 (>= 8:6.6.0.4) but it is not installable
                Depends: libmagickwand3 (>= 8:6.6.0.4) but it is not installable

But then when I try to install the missing packages I get this:

$ sudo apt-get install libfontconfig1 libjpeg62 libltdl7 libmagickcore3 libmagickwand3 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libfontconfig1 is already the newest version.
libfontconfig1 set to manually installed.
libjpeg62 is already the newest version.
libjpeg62 set to manually installed.
Package libltdl7 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libltdl7 has no installation candidate

How do I resolve these problems?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I used aptitude instead of apt-get, which provided options to resolve the problems instead of just failing.

Keep the following packages at their current version:
php5-common [5.3.8-1~dotdeb.1 (oldstable, now)]
php5-imagick [Not Installed]

^Not a helpful first "solution", mind. However the second one worked:

Install the following packages:
php5-imagick [5.3.8-1~dotdeb.1 (oldstable)]

Keep the following packages at their current version:
php5-common [5.3.8-1~dotdeb.1 (oldstable, now)]

Score is -9910

Accept this solution? [Y/n/q/?] Y
share|improve this answer
    
Glad you resolved this. Please be sure to mark your answer accepted when you are able. –  jscott Jun 20 '13 at 2:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.