Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been trying to setup an Ubuntu 12.04 VM that is running PHP 5.4 with the imagick module. All the results I find on google say to use the ondrej packages, which for the most part works perfectly. All the major modules install and run exactly the way they should, but when I try to install imagick it tells me I'm missing a dependency.

# apt-get install php5-imagick
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-imagick : Depends: phpapi-20090626
E: Unable to correct problems, you have held broken packages.

phpapi-20090626 appears to be something that should have been installed along with php5.

Is this an error in the package? What can I do to resolve this?

share|improve this question

I finally resolved this last night by downloading the package manually from the ondrej repo and installing it with dpkg:

$ wget
$ dpkg -i php5-imagick_3.1.0~rc1-1~precise+1_amd64.deb

Update: package not found 404,this is correct address:

share|improve this answer
Thank you for this! – tubaguy50035 Sep 24 '12 at 20:51

For those who stuck with this question with i386 arch here is link to latest package for i386:

$ wget
$ dpkg -i php5-imagick_3.1.0~rc2-1~precise+1_i386.deb
share|improve this answer
If you're not planning on updating this answer every time Ondrej makes a new release it might be better to link to the packages page. – Ladadadada Sep 17 '13 at 10:51

Address will be changed again, so just go to and search "ondrej php5-imagick 64 presize"

share|improve this answer

Your Answer


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.