のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

E: Unable to correct problems, you have held broken packages.

root@1b2ddc8a7791:/# apt-get install -y --no-install-recommends libzmq3-dev=4.0.4+dfsg-2
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:
 libzmq3-dev : Depends: libzmq3 (= 4.0.4+dfsg-2) but 4.0.4+dfsg-2ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.

以下のように変えた、インストールできた。

改善前
apt-get install -y --no-install-recommends libzmq3-dev=4.0.4+dfsg-2
改善後
apt-get install -y --no-install-recommends libzmq3-dev=4.0.4+dfsg-2ubuntu0.1