For the past month or so, since upgrading to Ubuntu 24.04 (during the beta period), I've been getting this error when launching Flatpak applications from Gnome-Software or the terminal:
ldconfig failed, exit status 256
When I launch them otherwise, of course, there's no error, but also no apps.
Running: sudo flatpak -v repair --reinstall-all does fix the issue, but only temporarily. Installing any other Flatpak, or installing updates, immediately brings the error back.
Sometimes, the error also seems to be triggered when an application (for example Inkscape), crashes. After this, the application in question (possibly sometimes others) will no longer open until I repair everything as stated above.
I've been scouring the internet for solutions but coming up short. What should I do to get back to a normal, working state?