How to get lensfun working for darktable

What version of Ubuntu and what version of darktable? Are you using the snap or flatpak package?