Score:0

Imagemagick C and C++ libraries can't be installed at same time on Ubuntu 22.04

gb flag

apt install libmagickwand-dev graphicsmagick-libmagick-dev-compat

Issue: apt won't install both packages at the same time. apt removes one when I install the other. If I attempt to install both at the same time I get errors. (please see below)

I have both C and C++ source code that uses ImageMagick, and each works individually, but requires a different package.

Here is the output of apt:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
graphicsmagick-libmagick-dev-compat is already the newest version (1.4+really1.3.38-1).
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:
 libmagickwand-6.q16-dev : Depends: libmagickcore-6.q16-dev (= 8:6.9.11.60+dfsg-1.3build2) but it is not installable
E: Unable to correct problems, you have held broken packages.

===================================================

apt policy graphicsmagick-libmagick-dev-compat

graphicsmagick-libmagick-dev-compat:
  Installed: 1.4+really1.3.38-1
  Candidate: 1.4+really1.3.38-1
  Version table:
 *** 1.4+really1.3.38-1 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

===================================================

apt policy libmagickwand-dev

libmagickwand-dev:
  Installed: (none)
  Candidate: 8:6.9.11.60+dfsg-1.3build2
  Version table:
     8:6.9.11.60+dfsg-1.3build2 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status
Organic Marble avatar
us flag
Please edit your question and show the output of `apt policy [packagename]` for both packages.
muru avatar
us flag
Please use code formatting for commands and command output: https://askubuntu.com/editing-help#code The output is unreadable otherwise. Also fix the existing output as well
null avatar
gb flag
Done. Any help appreciated.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.