I am running Darktable on Ubuntu 20.04 from the Flatpak distribution. By default, its lensfun database is out of date.
However, running lensfun-update-data (with or without sudo) does not change anything within Darktable. I presume that’s because the Flatpak somehow has its own lensfun database.
run cp -r ~/.local/share/lensfun/updates/version_1/* /var/lib/flatpak/app/org.darktable.Darktable/x86_64/stable/active/files/share/lensfun/version_2/ to overwrite the files in the flatpak.