Dan Robertson's picture

I have been trying to install imagemagick and magickwand for my php environment on a lamp appliance.  When I dig down I get the following error:

The following packages have unmet dependencies:
  libexpat1-dev: Depends: libexpat1 (= 2.0.1-0ubuntu1) but 2.0.1-4+lenny2 is to be installed
E: Broken packages

It also says libexpat1 is installed and is the newest version.  I think it may have something to do with the custom sources list the Turnkey uses.  Does anyone have an idea on how I can go about getting this package installed?

Thanks,

Dan

Forum: 
Alon Swartz's picture

I have been unable to reproduce this issue. imagemagick installs without issue, and libexpat1 ubuntu version is installed:
root@lamp:~# apt-cache policy libexpat1
libexpat1:
  Installed: 2.0.1-0ubuntu1
  Candidate: 2.0.1-0ubuntu1
  Version table:
     2.0.1-4+lenny2 0
        600 http://security.debian.org lenny/updates/main Packages
 *** 2.0.1-0ubuntu1 0
        650 http://archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status
How are you installing magickwand? As its not available in hardy or lenny? If you can provide more information on how to reproduce the issue it will be easier to help.
Dan Robertson's picture

I am running apt-get install libmagick9-dev which fails due to three unmet dependencies: libgraphviz-dev, librsvg2-dev, and libwmf-dev.  When I tried to install these individually, I receive the following error.

The following packages have unmet dependencies:
  libexpat1-dev: Depends: libexpat1 (= 2.0.1-0ubuntu1) but 2.0.1-4+lenny2 is to be installed
E: Broken packages

Here is the output from the command you ran.  As you can see I have the lenny version installed rather than the ubuntu version:

root@lamp:~# apt-cache policy libexpat1
libexpat1:
  Installed: 2.0.1-4+lenny2
  Candidate: 2.0.1-4+lenny2
  Version table:
 *** 2.0.1-4+lenny2 0
        600 http://security.debian.org lenny/updates/main Packages
        100 /var/lib/dpkg/status
     2.0.1-0ubuntu1 0
        650 http://archive.ubuntu.com hardy/main Packages

I have followed the post at http://www.theatons.com/install-imagemagick-imagick-for-php-on-ubuntu.  I was unaware that magickwand is unavailable in the repos.  My goal of having these installed is to use it to manipulate pdf documents and convert them to images.  My phpinfo() shows the imagick module enabled.  Do I really need magickwand for this?

 Thanks

Liraz Siri's picture

Importing packages from Debian can be tricky due to dependency resolution. Try putting the debs you want + dependencies in one directory and installing them together like this:
dpkg -i *.deb

Add new comment