TurnKey Linux Virtual Appliance Library

Trouble installing libmagick9-dev on lamp appliance

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

Alon Swartz's picture

Cannot reproduce this issue

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.

I am running apt-get install

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

Try installing them together

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

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)