Missing or broken libGL.so.1 library

Description

This library provides hardware-accelerated Direct3D and OpenGL support. This is used by most games, but also by CAD applications and recent Microsoft Office versions.

If the terminal reports this message:

libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

Your machine has not been configured for DRI rendering. This means applications like PowerPoint 2010 will not launch. Please ensure that you have installed the mesa-dri libraries or reinstall the proprietary drivers to properly configure the system.

Resolution

Each graphics driver comes with a different version of this library. We recommend consulting your distribution's documentation for instructions on how to install the best OpenGL and 3D driver for your graphics card. That said we normally recommend using the fglrx driver for AMD/ATI graphics cards and the nvidia one for Nvidia cards.

Here are some package names that you may use as a starting point. Note that it is important to use the right one to match your graphics driver:

Arch Linux
Intel 32-bit : pacman -Syu xf86-video-intel mesa-libgl
Intel 64-bit : pacman -Syu xf86-video-intel lib32-mesa-libgl
For reference, See the Arch Linux wiki
AMD open source
Nvidia open source | proprietary

Debian 7 - 32-bit
Nvidia : apt-get install nvidia-glx or nvidia-glx-legacy-96xx
AMD : apt-get install fglrx-driver fglrx-glx
Intel : apt-get install libgl1-mesa-glx libgl1-mesa-dri
Debian 7 - 64-bit
Nvidia : apt-get install nvidia-glx-ia32 or nvidia-glx-legacy-96xx-ia32
AMD : apt-get install fglrx-glx-ia32
Intel : apt-get install libgl1-mesa-glx:i386 libgl1-mesa-dri:i386

Debian >= 8 - 32-bit
Nvidia: apt-get install libgl1-nvidia-glx
AMD : apt-get install libgl1-fglrx-glx
Intel : apt-get install libgl1-mesa-glx libgl1-mesa-dri
Debian >= 8 - 64-bit
Nvidia: apt-get install libgl1-nvidia-glx-i386
AMD : apt-get install libgl1-fglrx-glx-i386
Intel : apt-get install libgl1-mesa-glx:i386 libgl1-mesa-dri:i386

Fedora
Nvidia : dnf install xorg-x11-drv-nvidia-libs.i686
Intel : dnf install mesa-libGL.i686 mesa-dri-drivers.i686

openSUSE
32-bit: zypper install Mesa-libGL1 or Mesa
64-bit: zypper install Mesa-libGL1-32bit or Mesa-32bit

Ubuntu 14.04
Nvidia: apt-get install nvidia-331 or nvidia-331-updates
AMD : apt-get install fglrx or fglrx-updates
Intel : apt-get install libgl1-mesa-glx libgl1-mesa-dri
Ubuntu 14.04.2
Intel : apt-get install libgl1-mesa-glx-lts-utopic libgl1-mesa-dri-lts-utopic

Ubuntu >= 16.04
Nvidia: apt-get install nvidia
AMD : apt-get install fglrx or fglrx-updates
Intel : apt-get install libgl1-mesa-glx libgl1-mesa-dri

Additional Help

If the distribution-provided graphics packages don't help resolve OpenGL errors the next step is to download the proprietary graphics installers from Nvidia/AMD and manually install them on your system. Nvidia's drivers are located here and AMD's drivers here. Search Google for instructions on how to install these packages directly on your Linux distribution.

Next Step: Missing or broken libGLU.so.1 library

Last modified on 2023-09-29 10:56:13 UTC by Andrew Balfour