微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决在 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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。