Ubuntu 20/22 images fails to start incus-agent

I’m getting the following error in the console when I try to launch a vm that is based on ubuntu 20.04 and 22.04 using the command incus launch images:ubuntu/20.04 --vm u20
Here is the error in the console:
[FAILED] Failed to start Incus - agent.

I’ve tried to change the password and log into the vm. I can then see the following error that is preventing the incus-agent to start:
Mar 31 14:59:04 distrobuilder-794c2699-86ef-463d-b955-7e365463a374 incus-agent[690]: /run/incus_agent/incus-agent: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR’ not found (required by /run/incus_agent/incus-agent)

I was able to successfully launch a vm based on ubuntu 24.04 and fedora40, which made me thing that this might be an issue with the images ubuntu/20.04 and ubuntu/22.04. The following is glibc version:
root@distrobuilder-794c2699-86ef-463d-b955-7e365463a374:~# ldd --version ldd (Ubuntu GLIBC 2.35-0ubuntu3.9) 2.35 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper. root@distrobuilder-794c2699-86ef-463d-b955-7e365463a374:~#

I’m running incus 6.8 but I’m not sure if that matters as the images should be the same, shouldn’t it?

What distribution are you running on the host?

incus-agent should always be built statically to avoid that problem.
It looks like your distribution is building a dynamically built version of the agent instead, causing this issue.

I’m running fedora41 and I’ve installed incus from the fedora repository using the package manager. The latest version on the repo is 6.8.

Okay. You should file a bug in the Fedora bug tracker.

incus-agent should always be static as it needs to run in any Linux guest OS.

stgraber@dakara:~$ file /opt/incus/agent/incus-agent.linux.x86_64 
/opt/incus/agent/incus-agent.linux.x86_64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=4ff31e5a703be6da9c6250e0d80056d80dc720a9, with debug_info, not stripped

Note the “statically linked” mentioned in there.