These steps have been tested on Windows 10 with WSL2 running Ubuntu.
First install the dependencies:
apt install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev
There are more than we need, but also include GLut and Glu libraries to link aginst during compilation for application development (these can be removed if that functionality is not required).