I opened the properties of the /usr/bin/libGL.so file and found that the link was broken. In some cases, this file is not available. We can search in other paths, usually under /usr/lib/x86_64-linux-gnu/, to find files starting with libGL.so. I have libGL.so.1 here. use
sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/bin/libGL.so
Link to the path you are missing. Mine is /usr/bin/libGL.so. If it says that /usr/bin/libGL.so already exists, delete the old one and link again.