Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing libzmq3-dev #3317

Closed
1 of 7 tasks
jwillemsen opened this issue May 5, 2021 · 10 comments
Closed
1 of 7 tasks

Problem installing libzmq3-dev #3317

jwillemsen opened this issue May 5, 2021 · 10 comments
Assignees
Labels
Area: Common Tools investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu

Comments

@jwillemsen
Copy link

jwillemsen commented May 5, 2021

Description
On ubuntu-18.04 we run the following commands

sudo apt-get --yes update
sudo apt-get --yes install libxerces-c-dev libssl-dev libzmq3-dev g++-6

Which started to fail after May 2nd 2021 with

Reading state information...
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.9).
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.2.5-1ubuntu0.2) but 4.3.1-5+ubuntu18.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.

See https://github.com/RemedyIT/axcioma/runs/2509593210?check_suite_focus=true

Area for Triage:
Packages

Question, Bug, or Feature?:
Bug

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11.0
  • Windows Server 2016 R2
  • Windows Server 2019

Image version
Version: 20210504.1

Expected behavior

libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.9).
The following additional packages will be installed:
  comerr-dev cpp-6 gcc-6 gcc-6-base krb5-multidev libasan3 libgcc-6-dev
  libgssrpc4 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-9 libkrb5-dev
  libnorm-dev libpgm-dev libsodium-dev libsodium23 libstdc++-6-dev
  libxerces-c3.2
Suggested packages:
  doc-base gcc-6-locales g++-6-multilib gcc-6-doc libstdc++6-6-dbg
  gcc-6-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
  libasan3-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg
  libmpx2-dbg libquadmath0-dbg krb5-doc krb5-user libnorm-doc libstdc++-6-doc
  libxerces-c-doc
The following NEW packages will be installed:
  comerr-dev cpp-6 g++-6 gcc-6 gcc-6-base krb5-multidev libasan3 libgcc-6-dev
  libgssrpc4 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-9 libkrb5-dev
  libnorm-dev libpgm-dev libsodium-dev libstdc++-6-dev libxerces-c-dev
  libxerces-c3.2 libzmq3-dev
The following packages will be upgraded:
  libsodium23
1 upgraded, 20 newly installed, 0 to remove and 222 not upgraded.

Actual behavior

Reading state information...
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.9).
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.2.5-1ubuntu0.2) but 4.3.1-5+ubuntu18.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.

Repro steps

See https://github.com/RemedyIT/axcioma/blob/master/.github/workflows/linux.yml

@miketimofeev miketimofeev added Area: Common Tools investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu and removed needs triage labels May 5, 2021
@miketimofeev
Copy link
Contributor

Hi @jwillemsen!
We will take a look

@miketimofeev
Copy link
Contributor

@jwillemsen could you please add the following workaround before installing the packages until we've found a root cause
sudo apt-get remove libzmq5

@jwillemsen
Copy link
Author

Created RemedyIT/axcioma#89 to try this workaround

@jwillemsen
Copy link
Author

The jobs are passed the apt-get install so the workaround works, waiting for the CI jobs to finish before I merge them to master, thanks @miketimofeev

@al-cheb al-cheb self-assigned this May 6, 2021
@al-cheb
Copy link
Contributor

al-cheb commented May 6, 2021

@jameswhite,
During Ubuntu image generation process we install PHP using 3rd-party repository ppa:ondrej/php. At the end of the process we intentionally delete this repository (in scope of the #3272 PR) which why we start getting the error libzmq3-dev : Depends: libzmq5 (= 4.2.5-1ubuntu0.2) but 4.3.1-5+ubuntu18.04.1+deb.sury.org+1 is to be installed:

$ apt-cache madison libzmq5
libzmq5 | 4.3.1-5+ubuntu18.04.1+deb.sury.org+1 | http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages
$ apt-cache madison libzmq3-dev
libzmq3-dev | 4.3.1-5+ubuntu18.04.1+deb.sury.org+1 | http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages

Workarounds:

  1. Remove libzmq5
    sudo apt-get remove libzmq5
  2. Add ppa:ondrej/php repo
    sudo apt-add-repository "ppa:ondrej/php" -y

E.g.:

    runs-on: ubuntu-18.04
    steps:
           - name: install zmq5
             run: |
                sudo apt-add-repository "ppa:ondrej/php" -y
                sudo apt-get --yes update
                sudo apt-get --yes install libxerces-c-dev libssl-dev libzmq3-dev g++-6

image

@ferdnyc
Copy link

ferdnyc commented May 6, 2021

@al-cheb In my CI runs from before 2021-05-04 I see libzmq3-dev being pulled in from the ondrej/php PPA, just as you say, so apparently the PPA was previously allowed to remain in the image configs. Why was deletion of that PPA added to the image build, presumably recently, and can it be reversed?

(Deleting a PPA from which packages are currently installed, though presumably well-intentioned and meant to avoid "polluting" the image configs, is just not a good idea — it leads to issues exactly like this. All things considered, a more "polluted" image with a complete set of PPAs configured to satisfy all dependencies is preferable.)

@al-cheb
Copy link
Contributor

al-cheb commented May 7, 2021

@al-cheb In my PPA runs from before 2021-05-04 I see libzmq3-dev being pulled in from the ondrej/php PPA, just as you say, so apparently the PPA was previously allowed to remain in the image configs. Why was deletion of that PPA added to the image build, presumably recently, and can it be reversed?

(Deleting a PPA from which packages are currently installed, though presumably well-intentioned and meant to avoid "polluting" the image configs, is just not a good idea — it leads to issues exactly like this. All things considered, a more "polluted" image with a complete set of PPAs configured to satisfy all dependencies is preferable.)

We have intentionally deleted this repository - #2951 and don't have any plans to revert it.

random-zebra added a commit to PIVX-Project/PIVX that referenced this issue May 7, 2021
a60ff95 [GA] Workaround missing apt dependency (Fuzzbawls)

Pull request description:

  Github Actions recently released new image versions for Ubuntu 16.04 and
  18.04 that introduced a missing package dependency issue.

  This is a workaround that simply re-adds the dependent PPA repository
  back to the apt sources.

  Ref: actions/runner-images#3317

ACKs for top commit:
  random-zebra:
    ACK a60ff95 and merging...

Tree-SHA512: 01b6fab48bf76ae70adb03d462ea79a50f377858e55829f9b2401552355acac40f6f86721def5959d7e16308f1283d2d8e179d329ae498572ab7ea26f75130e4
fingolfin added a commit to fingolfin/gap that referenced this issue May 7, 2021
fingolfin added a commit to fingolfin/gap that referenced this issue May 7, 2021
@al-cheb
Copy link
Contributor

al-cheb commented May 7, 2021

PR reverted - #3340

@al-cheb
Copy link
Contributor

al-cheb commented May 13, 2021

New Ubuntu 18.04 image with http://ppa.launchpad.net/ondrej/php/ubuntu repo has been deployed.

@al-cheb al-cheb closed this as completed May 13, 2021
@jwillemsen
Copy link
Author

Problem is back but now on ubuntu 16.04

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.
Current runner version: '2.278.0'
Operating System
  Ubuntu
  16.04.7
  LTS
Virtual Environment
  Environment: ubuntu-16.04
  Version: 20210531.0
  Included Software: https://github.com/actions/virtual-environments/blob/ubuntu16/20210531.0/images/linux/Ubuntu1604-README.md
  Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu16%2F20210531.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Common Tools investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu
Projects
None yet
Development

No branches or pull requests

4 participants