首页 > 解决方案 > 在 GitHub Actions Ubuntu runners 上安装 libzmq3-dev 时遇到问题

问题描述

libzmq3-dev在 GitHub Actions 上的 Ubuntu 16.04 上安装时遇到问题。这可能是我的用户错误,因为我在本地 Ubuntu 机器上安装它时没有遇到错误。我将不胜感激故障排除建议,例如我应该libzmq3-dev在 GHA 机器上安装之前专门安装的库。

我向https://github.com/wlandau/libzmq-reprex/runs/2521101152发布了一个最小的可重现示例。相关:无法在 ubuntu 19.04 上安装 libzmq3-dev

Run sudo apt-get install libzmq3-dev
Reading package lists...
Building dependency tree...
Reading state information...
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: libzmq5 (= 4.1.4-7ubuntu0.1) but 4.3.1-5+ubuntu16.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
Error: Process completed with exit code 100.

标签: ubuntuzeromqgithub-actionsfailed-installation

解决方案


我在 Azure Pipelines 中遇到了同样的问题。我的解决方法是libzmq3-devOpenSUSE 存储库安装。


推荐阅读