
sudo apt install --reinstall libgl1-mesa-dev
sudo find /usr/lib/ -name libGL*
# You can look under /usr/lib/x86_64-linux-gnu/ or /usr/lib for the file, remove the symlink currently at /usr/lib/x86_64-linux-gnu/libGL.so and then re-create the symlink to the actual library using
sudo ln sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev libgl1 -y
sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/x86_6