Skip to content

CI cannot support Ubuntu 26.04 due to broken build-essential package #12512

Closed

Description

@oech3

CI needs build-essential and GNU coreutils as system binary for testing. However, Ubuntu 26.04's build-essential strongly depends on uutils and rejects GNU as system binary.
If Ubuntu decided to not fix the broken dependency, we need to build our own custom build-essential, or just abandon supporting one of the most common target.

cc @julian-klode @Ecordonnier

Activity

  1. BAMF0 commented on May 29, 2026

    @BAMF0
    Contributor

    Hmm yes this is a problem indeed. Where does the CI break?

    Naively, a quick (hacky) fix is to append gnu to the calls where the GNU alternatives are wanted, e.g. gnuls. Both uutils and GNU are co-installable, it's just that the symlinks are forced to point to uutils in this scenario. However this "fix" is problematic if one does not have direct control of the code.

    Judging by the changelog, the build-essential dependency on uutils should be a temporary hack though and I would not expect it to remain.

  2. oech3 commented on May 29, 2026

    @oech3
    ContributorAuthor

    I know fuzzer only. I guess it is used much more, but I forgot...
    The name gnuls is Ubuntu specific, so using the name disallows running fuzzer locally.

  3. BAMF0 commented on May 29, 2026

    @BAMF0
    Contributor

    Good point. There is an associated bug report on Launchpad for Ubuntu here: https://bugs.launchpad.net/ubuntu/+source/build-essential/+bug/2148691. One rationale for the strict dependency on uutils seems to be to not allow building in an unsupported environment (i.e. uutils is the coreutils provider on Ubuntu -> building with GNU is unsupported). Still, I would think that it should be possible for the user to decide this. Let me investigate and see what the best solution could be on the Ubuntu side.

    Another solution I see is separating the build and test job such that the test uses the build artifact without any explicit dependencies on the build environment. In this case, the GNU alternative can be forced using the following command:

    sudo apt install coreutils-from-gnu coreutils-from-uutils- --allow-remove-essential

    Would this work?

  4. oech3 commented on May 29, 2026

    @oech3
    Author
  5. BAMF0 commented on May 29, 2026

    @BAMF0
    Contributor

    Intuitively I would expect cargo to be agnostic of the coreutils provider. We should be able to share build artifacts using actions/upload-artifact@v4.

    If uutils breaks CI however, that should definitely be looked into. Do you have any logs available that I could investigate?

  6. oech3 commented on May 29, 2026

    @oech3
    Author
  7. oech3 commented on May 31, 2026

    @oech3
    Author
  8. BAMF0 commented on Jun 1, 2026

    @BAMF0
    Contributor

    Awesome! Glad it got fixed.

  9. BAMF0 commented on Jun 29, 2026

    @BAMF0
    Contributor

    GNU coreutils on https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2604-Readme.md is too old for us...

    Weird, 26.04 Resolute Racoon has GNU coreutils version 9.7 (ref: https://launchpad.net/ubuntu/+source/coreutils), not sure how they could be using 9.5 in their runner image. Is 9.7 still too old?

  10. oech3 commented on Jun 29, 2026

    @oech3
    ContributorAuthor

    I know it is difficult to do that (until GitHub provide Arch runner), but I want to use latest GNU since it is goal of this project.

  11. BAMF0 commented on Jun 29, 2026

    @BAMF0
    Contributor

    Thanks for bringing it up! My 26.04 system also has 9.5 installed for some reason... this is odd. Let me have a look.

  12. oech3 commented on Jun 29, 2026

    @oech3
    ContributorAuthor
  13. BAMF0 commented on Jun 29, 2026

    @BAMF0
    Contributor

    I know it is difficult to do that (until GitHub provide Arch runner), but I want to use latest GNU since it is goal of this project.

    Yeah I understand, that's reasonable IMO. Would it work if we provided a PPA for this purpose? Then you could add that as a repository and explicitly install the latest available version.

  14. oech3 commented on Jun 29, 2026

    @oech3
    ContributorAuthor
  15. 5 remaining items

  16. oech3 commented on Jun 30, 2026

    @oech3
    ContributorAuthor

    Thankyou! I'll try.

  17. BAMF0 commented on Jun 30, 2026

    @BAMF0
    Contributor

    No worries! The current version got a FTBFS due to a test that (expectedly) failed in the build environment. Pushing a fix now and there should be an installable package soon.

  18. oech3 commented on Jun 30, 2026

    @oech3
    ContributorAuthor

    Does it include binaries conflicting with util-linux, procps-ng and inetutils?

    --enable-single-binary=hardlinks --enable-install-program="arch,kill,uptime,hostname" \

  19. BAMF0 commented on Jun 30, 2026

    @BAMF0
    Contributor

    No it doesn't at the moment AFAIK. Do you want them included?

  20. oech3 commented on Jun 30, 2026

    @oech3
    ContributorAuthor
  21. BAMF0 commented on Jun 30, 2026

    @BAMF0
    Contributor

    Yes. (Though it might cause confliction...)

    In this case, they would be shipped with the gnu prefix so no "real" conflicts. The GNU coreutils package already does this for every other util also though.

  22. oech3 commented on Jun 30, 2026

    @oech3
    ContributorAuthor

    If you are fine, I'd like to link https://launchpad.net/~bamf0/+archive/ubuntu/coreutils-reference/+files/gnu-coreutils_9.11-0ubuntu1~ppa3_amd64.deb to somewhere of CONTRIBUTING.md for people not on roling release Linux distribution. There are many bug reports coming from outdated version.

    cc @sylvestre

  23. BAMF0 commented on Jun 30, 2026

    @BAMF0
    Contributor

    If you are fine, I'd like to link https://launchpad.net/~bamf0/+archive/ubuntu/coreutils-reference/+files/gnu-coreutils_9.11-0ubuntu1~ppa3_amd64.deb to somewhere of CONTRIBUTING.md for people not on roling release Linux distribution. There are many bug reports coming from outdated version.

    Sure thing, that's alright with me! Please mention that it's to be used as a reference in that case and not as a replacement for the archive's coreutils; it will not receive ordinary bug fixes and updates.

  24. oech3 commented on Jul 1, 2026

    @oech3
    ContributorAuthor

    curl https://launchpad.net/~bamf0/+archive/ubuntu/coreutils-reference/+files/gnu-coreutils_9.11-0ubuntu1~ppa3_amd64.deb > 9.11.deb causes network error. No problem with web browser.

  25. BAMF0 commented on Jul 1, 2026

    @BAMF0
    Contributor

    curl https://launchpad.net/~bamf0/+archive/ubuntu/coreutils-reference/+files/gnu-coreutils_9.11-0ubuntu1~ppa3_amd64.deb > 9.11.deb causes network error. No problem with web browser.

    Launchpad has been under load recently, might be related? I managed to download it successfully just using wget:

    wget https://launchpad.net/~bamf0/+archive/ubuntu/coreutils-reference/+files/gnu-coreutils_9.11-0ubuntu1~ppa3_amd64.deb
  26. oech3 commented on Jul 2, 2026

    @oech3
    ContributorAuthor

    Yes. wget worked on the CI while curl corrupts *.deb. Thankyou.

  27. empierre commented on Jul 2, 2026

    @empierre

    Hello, as a sum-up, what should do people that have the issue ?

    thanks

  28. oech3 commented on Jul 2, 2026

    @oech3
    ContributorAuthor

    GitHub runner probably hacked build-essential to work with GNU coreutils, I guess... Closing,

  29. xtqqczze commented on Jul 25, 2026

    @xtqqczze
    Collaborator

    curl https://launchpad.net/~bamf0/+archive/ubuntu/coreutils-reference/+files/gnu-coreutils_9.11-0ubuntu1~ppa3_amd64.deb > 9.11.deb causes network error. No problem with web browser.

    For reference, you need to specify the -L (--location) option for this to work, otherwise curl will not follow the redirects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions