How to Install and Uninstall libgl1-mesa-dev Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: March 15,2025

1. Install "libgl1-mesa-dev" package

Please follow the steps below to install libgl1-mesa-dev on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install libgl1-mesa-dev

2. Uninstall "libgl1-mesa-dev" package

This is a short guide on how to uninstall libgl1-mesa-dev on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove libgl1-mesa-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the libgl1-mesa-dev package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: libgl1-mesa-dev
Architecture: amd64
Version: 20.0.8-0ubuntu1~18.04.1
Multi-Arch: same
Priority: extra
Section: libdevel
Source: mesa
Origin: Ubuntu
Maintainer: Ubuntu X-SWAT
Original-Maintainer: Debian X Strike Force
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 82
Provides: libgl-dev
Depends: mesa-common-dev (= 20.0.8-0ubuntu1~18.04.1), libglvnd-dev, libdrm-dev (>= 2.4.95), libx11-dev, libx11-xcb-dev, libxcb-dri3-dev, libxcb-present-dev, libxcb-sync-dev, libxshmfence-dev, libxcb-dri2-0-dev, libxcb-glx0-dev, libxdamage-dev, libxext-dev, libxfixes-dev, libxxf86vm-dev, x11proto-dev
Conflicts: libgl-dev
Replaces: libgl-dev
Filename: pool/main/m/mesa/libgl1-mesa-dev_20.0.8-0ubuntu1~18.04.1_amd64.deb
Size: 6180
MD5sum: 0b49b7c8c057a58d76044a3bf3aa6af6
SHA1: fbced1b2ef88c4fb3d328136a2ea23ad4fcc5cf7
SHA256: b9f5ec68c6996f62278da5eb545398d1a9b112391dac3aa3330537331cf57d29
SHA512: d1aa3654d5b73f6450fbd7a375a74e34e3e53f22c0684f9e1c8f23f78a49851efc2168e68049c27a09f34251c620bfef7d3c3a147822fc47c3b4f945ee598fd0
Homepage: https://mesa3d.org/
Description: free implementation of the OpenGL API -- GLX development files
Description-md5: 597ff2408169e95459eb50f657d62ef9
Task: lubuntu-qt-desktop
Supported: 5y

Package: libgl1-mesa-dev
Architecture: amd64
Version: 19.2.8-0ubuntu0~18.04.2
Multi-Arch: same
Priority: extra
Section: libdevel
Source: mesa
Origin: Ubuntu
Maintainer: Ubuntu X-SWAT
Original-Maintainer: Debian X Strike Force
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 80
Provides: libgl-dev
Depends: mesa-common-dev (= 19.2.8-0ubuntu0~18.04.2), libglvnd-dev, libdrm-dev (>= 2.4.95), libx11-dev, libx11-xcb-dev, libxcb-dri3-dev, libxcb-present-dev, libxcb-sync-dev, libxshmfence-dev, libxcb-dri2-0-dev, libxcb-glx0-dev, libxdamage-dev, libxext-dev, libxfixes-dev, libxxf86vm-dev, x11proto-dev
Conflicts: libgl-dev
Replaces: libgl-dev
Filename: pool/main/m/mesa/libgl1-mesa-dev_19.2.8-0ubuntu0~18.04.2_amd64.deb
Size: 6176
MD5sum: d49877ace88a279501baf9e109813c8e
SHA1: 18233cb848b65beae2f82f3f81896aa4bdb8abef
SHA256: f695c8d8d59c7c681b42cf5875b9c0df7722644ed0ed7425889ef25eaed55af8
SHA512: 8f032e6b7d1e58613993439fda1c500960052bf84503bc50c4a394d8d7b42e49ef31066cc1a8b08d45e03218a79490f60861953bb8b59549c3d14596b1db65ac
Homepage: https://mesa3d.org/
Description: free implementation of the OpenGL API -- GLX development files
Description-md5: 597ff2408169e95459eb50f657d62ef9
Task: lubuntu-qt-desktop
Supported: 5y

Package: libgl1-mesa-dev
Architecture: amd64
Version: 18.0.0~rc5-1ubuntu1
Multi-Arch: same
Priority: extra
Section: libdevel
Source: mesa
Origin: Ubuntu
Maintainer: Ubuntu X-SWAT
Original-Maintainer: Debian X Strike Force
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 69
Provides: libgl-dev
Depends: mesa-common-dev (= 18.0.0~rc5-1ubuntu1), libglvnd-dev, libdrm-dev (>= 2.4.85), libx11-dev, libx11-xcb-dev, libxcb-dri3-dev, libxcb-present-dev, libxcb-sync-dev, libxshmfence-dev, libxcb-dri2-0-dev, libxcb-glx0-dev, libxdamage-dev, libxext-dev, libxfixes-dev, libxxf86vm-dev, x11proto-dri2-dev (>= 2.6), x11proto-gl-dev (>= 1.4.14)
Conflicts: libgl-dev
Replaces: libgl-dev
Filename: pool/main/m/mesa/libgl1-mesa-dev_18.0.0~rc5-1ubuntu1_amd64.deb
Size: 4440
MD5sum: 7dfa0089379ad0a469b009f50d2d7bbc
SHA1: 8c692ecc51584fa313ab0c3f13b95fcd6511366e
SHA256: fb8238b972246a98036b268bd30632fb354ceacc6483f6681a0b4c6dfe23d326
Homepage: https://mesa3d.org/
Description: free implementation of the OpenGL API -- GLX development files
Description-md5: 597ff2408169e95459eb50f657d62ef9
Task: lubuntu-qt-desktop
Supported: 5y