aptly-dev / aptly

aptly - Debian repository management tool
https://www.aptly.info/
MIT License
2.54k stars 369 forks source link

Nightly version for Debian/Ubuntu requires GLIBC_2.32 since the latest version #1251

Closed nook24 closed 2 months ago

nook24 commented 4 months ago

I am using the nightly repository of aptly deb http://repo.aptly.info/ nightly main and noticed, that the current version is not running on Ubuntu Focal 20.04 anymore:

root@a49b79157c31:/# aptly
aptly: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by aptly)
aptly: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by aptly)

Detailed Description

I guess the issue is caused by a change in the build environment. Probably the current version got build on a newer version of Linux, such as Ubuntu 22.04 or Debian 12 for example.

Ubuntu 20.04 on the other hand uses GLIBC 2.31. The latest known nightly build that is running on GLIB 2.31 systems is 1.5.0+64+gf1649a64 which can be installed via apt-get install aptly=1.5.0+64+gf1649a64

Context

I know that the nightly repository is not for production and the stable repository still ships a version that runs fine on Ubuntu 20.04. With that said, I guess there is no benefit in requiring GLIBC_2.32 and the issue is just due to the fact, that the current version of aptly is getting build on a more modern system.

Ubuntu 20.04 has still active support until Apr 2025, having still support for it would be nice.

Possible Implementation

To be as compatible as possible, I would recommend to use an older version of Debian/Ubuntu to build aptly. I personally use Docker for this. For example the official golang docker image 1.22.0-bullseye should resolve this issue.

Your Environment

Ubuntu 20.04, amd64

I'm using the nightly version because there where some missing features in the stable, cant remember which feature it was exactly. I know this is an edge case, noting to important.

neolynx commented 2 months ago

that is unfortunate, indeed. we switched to ubuntu22 for the runners. I guess aptly should be build per distribution, not just a generic "nightly"..

neolynx commented 2 months ago

I updated the pipeline to build for focal and other distributions separately (PR pending).

The APT repository you were using should be updated as well, and work again. Could you confirm ?

Additionally, the following new APT source should be used from now on:

deb http://repo.aptly.info/nightly-focal focal main

Would be nice if you could also confirm the same packages is available here and that it works :)

neolynx commented 2 months ago

website updated: https://www.aptly.info/download/

colincoghill commented 2 months ago

nightly-jammy and nightly-focal seem to work for me.

The jammy one was dynamically linked with libc, focal was static build. Makes sense to me.

nook24 commented 2 months ago

Hi @neolynx I can confirm that the focal nightly builds are working perfectly fine :)

Many thanks, I will close the issue as resolved