Hi there.
It's probably due to more recent versions of Ubuntu breaking some older dependencies. When you say your using the latest version, are you speaking about the latest LTS version, or just absolutely the latest version altogether? I can try to install a VM and see if there is a way to reproduce the issue and/or find a workaround for you if I find out. Alternatively, If you have access to Debian 12, or 11, you could give that a shot and see (since we generally support Debian due to it's much more slower and stable releases).
Edit: I installed a VM with 24.04 and I can reproduce the issue. Looking into it now to see if there is anything I can do.