在 GitHub Actions Ubuntu runners 上安装 libzmq3-dev 时遇到问题

问题描述

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

我向 https://github.com/wlandau/libzmq-reprex/runs/2521101152 发布了一个最小的可重现示例。 相关:Cannot install libzmq3-dev on ubuntu 19.04

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.

解决方法

我在 Azure Pipelines 中遇到了同样的问题。我的解决方法是从 OpenSUSE repository 安装 libzmq3-dev