I've had the same issue. I came across the following
I came across the following
https://www.cfd-online.com/Forums/openfoam-installation/259186-errors-running-parafoam-wsl.html
The author of the opening post, wxyyoyo, found the solution
"
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt upgrade
It is on the page: https://askubuntu.com/questions/1516...o-ubuntu-24-04
"
It seems to have worked for me.