2

I was trying to build xmrig from source and tried to install the following dependencies

sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev

after that I get error messages saying packages could not be installed due to broken dependencies

openssl : Depends: libssl3 (>= 3.0.2-0ubuntu1.2) but 3.0.2-0ubuntu1.1 is to be installed

I am unable to find this version of libssl3 anywhere

on running sudo apt install -f, it says it will remove a bunch of programs making upto 700mb, including my browser. Some of them include important packages like ubuntu-desktop.

Please help. I am unable to install any other software as the package management system is now broken.

4
  • have you run sudo apt update && sudo apt dist-upgrade recently? Its likely there but your system isnt up to date. Jun 20, 2022 at 20:39
  • I regularly update and upgrade Jun 20, 2022 at 21:19
  • 2
    I'd suggest running apt update as already suggested; as the 1.2 package was replaced by libssl3 | 3.0.2-0ubuntu1.4 | jammy-updates | amd64, arm64, armhf, i386, ppc64el, riscv64, s390x (ie. your software lists appear outdated!)
    – guiverc
    Jun 20, 2022 at 22:50
  • 1
    Ran the update and upgrade commands again, no change Jun 21, 2022 at 13:46

1 Answer 1

3

I encountered this exact problem, but for libssl-dev (depending on libssl3), and this is on a fresh system which does nothing other than apt-get update && apt-get dist-upgrade && apt-get install libmysqlclient-dev. My apt sources follow jammy, jammy-updates, and jammy-security.

I had no problem with this same process literally less than 12 hours ago. I went digging through commits and found this wonderful clusterfuck:

If you look closely at the last link, you can see that someone started fooling around with this 8 hours ago, which is why I didn't notice it super early this morning but do now.

I strongly suspect that either a) someone at Canonical broke this, or b) the package servers have not gotten all of their updates in order yet. Simon Chopin is likely on the hook for this, if it's an individual who broke it.

I'm just going to wait it out for 24 hours. If the situation hasn't improved by then, I'll be opening a ticket with Canonical (assuming someone hasn't opened a ticket by then). It is clearly a dependency version-locking problem somewhere in the dependency tree.

Edit: guiverc is correct, 3.0.2-0ubuntu1.4 is what is "the latest" (what happened to 1.2 and 1.3? yikes), but the entire package infrastructure is not 100% aware of that change yet. So we're back to my above paragraph, last line.

6
  • 1
    As expected, others have begun to report this breakage: bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1979244
    – koitsu
    Jun 21, 2022 at 11:42
  • What is the prognosis on this ? Do I just wait until canonical sorts this out ? Jun 21, 2022 at 13:47
  • @ChaitanyaGambali No other choice.
    – Atem18
    Jun 21, 2022 at 14:03
  • @ChaitanyaGambali It's fixed.
    – Atem18
    Jun 21, 2022 at 17:35
  • It's fixed in the sense that a completely unrelated OpenSSL CVE got patched and the libssl3 package updated to 3.0.2-0ubuntu1.5, which in essence "solved" the problem described here. I am sure this type of problem will happen again in the future due to Canonical's decision to implement A/B testing on their package servers (re: "phased updates"). But, for today, things are functional again.
    – koitsu
    Jun 21, 2022 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.