apt 安装 libmagickwand-dev graphicsmagick-libmagick-dev-compat
问题:apt 无法同时安装两个软件包。当我安装另一个软件包时,apt 会删除其中一个软件包。如果我尝试同时安装两个软件包,则会收到错误。(请参见下文)
我有使用 ImageMagick 的 C 和 C++ 源代码,每个源代码都可以单独运行,但需要不同的包。
以下是 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 策略 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 策略 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