This just hit me as well, on a kosher 18.04 system. I recently upgraded to a newer nvidia card, so that must have mangled it somehow.
Looks like three of its symlinks got nuked: ls: cannot access '/usr/lib/x86_64-linux-gnu/libEGL.so': No such file or directory ls: cannot access '/usr/lib/x86_64-linux-gnu/libGL.so': No such file or directory ls: cannot access '/usr/lib/x86_64-linux-gnu/libGLESv2.so': No such file or directory lrwxrwxrwx 1 root root 22 Jun 5 07:16 /usr/lib/x86_64-linux-gnu/libGLdispatch.so -> libGLdispatch.so.0.0.0 ... -rw-r--r-- 1 root root 4697 Jan 25 2018 /usr/share/doc/libglvnd-dev/copyright Doing sudo apt install --reinstall libglvnd-dev resolved the problem here. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to libglvnd in Ubuntu. https://bugs.launchpad.net/bugs/1770742 Title: Cannot find -lGL Status in libglvnd package in Ubuntu: Invalid Bug description: I was trying to compile a OpenGL program, but it fails to compile. I suppose the package this bug is in is really libglvnd-dev, but I could not find that in Launchpad. Anyway, the linking error is: /usr/bin/x86_64-linux-gnu-ld: cannot find -lGL collect2: error: ld returned 1 exit status This seems to be because the symlink libGL.so is missing. If I go to /usr/lib/x86_64-linux-gnu and type: sudo ln -s libGL.so.1 libGL.so then compiling works. Here is a (nonsensical) test program: #include <GL/gl.h> int main(int argc, char *argv[]) { glEnable(GL_DEPTH_TEST); return 0; } which I compile with: gcc testgl.c -lGL ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: libgl1 1.0.0-2ubuntu2 ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17 Uname: Linux 4.15.0-20-generic x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: KDE Date: Fri May 11 15:48:17 2018 EcryptfsInUse: Yes InstallationDate: Installed on 2018-04-29 (12 days ago) InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) SourcePackage: libglvnd UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libglvnd/+bug/1770742/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp