{"id":34184,"date":"2021-07-17T17:02:27","date_gmt":"2021-07-17T17:02:27","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=34184"},"modified":"2025-03-14T07:24:42","modified_gmt":"2025-03-14T07:24:42","slug":"install-latest-mesa-ubuntu-20-04-21-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/07\/install-latest-mesa-ubuntu-20-04-21-04\/","title":{"rendered":"How to Install Latest Mesa Graphics Driver in Ubuntu 24.04|22.04|20.04"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-34185\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/opengl-icon250.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/opengl-icon250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/opengl-icon250-150x150.png 150w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>For those sticking to the open-source graphics driver, the latest Mesa 3D graphics library is easy to install via an Ubuntu PPA.<\/p>\n<p>Mesa is an open-source software implementation of OpenGL, Vulkan, VDPAU, VA-API, and other graphics API specifications.<\/p>\n<p>Ubuntu uses Mesa as OpenGL implementation if no proprietary driver is in use. It is however always old. For users want to play some games with the open-source RadeonSI, RADV, Intel, or Nouveau drivers, you may try the latest Mesa via PPA.<\/p>\n<h3>Install Mesa via Ubuntu PPA:<\/h3>\n<p>A trustworthy <a href=\"https:\/\/launchpad.net\/~kisak\/+archive\/ubuntu\/kisak-mesa\" target=\"_blank\" rel=\"noopener\">Ubuntu PPA<\/a> is available that contains the latest stable Mesa packages for Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04, and Ubuntu 24.10 on <code>amd64<\/code>, <code>armhf\/arm64<\/code>, and <code>i386<\/code> CPU platforms.<\/p>\n<p><b>1. Add the PPA:<\/b><\/p>\n<p>Search for and open terminal from system app launcher. When it opens, run command to add the PPA:<\/p>\n<pre>sudo add-apt-repository ppa:kisak\/kisak-mesa<\/pre>\n<p><i>Type user password, no visual feedback, when it asks. Read the PPA description as you want and hit Enter to continue.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/mesa-freshppa.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48386\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/mesa-freshppa-700x505.webp\" alt=\"\" width=\"610\" height=\"440\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/mesa-freshppa-700x505.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/mesa-freshppa-300x216.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/mesa-freshppa.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>2. Install Mesa packages:<\/b><\/p>\n<p>For, Linux Mint, you need to update package cache though it&#8217;d done automatically in Ubuntu while adding PPA.<\/p>\n<pre>sudo apt update<\/pre>\n<p>Finally install available upgrades of all packages including Mesa library via command:<\/p>\n<pre>sudo apt full-upgrade<\/pre>\n<p><b>3. Check mesa version:<\/b><\/p>\n<p>To find out the package version, use command:<\/p>\n<pre>glxinfo | grep \"OpenGL version\"<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/mesa-beforeaftr.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48387\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/mesa-beforeaftr-700x298.webp\" alt=\"\" width=\"610\" height=\"260\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/mesa-beforeaftr-700x298.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/mesa-beforeaftr-300x128.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/mesa-beforeaftr.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h3>Restore Original Mesa packages:<\/h3>\n<p>To restore your graphics driver to the original status, firstly install ppa-purge via command:<\/p>\n<pre>sudo apt install ppa-purge<\/pre>\n<p>Next purge the Ubuntu PPA which will downgrade all the installed packages:<\/p>\n<pre>sudo ppa-purge ppa:kisak\/kisak-mesa<\/pre>\n<p>For Linux Mint 21\/22, it&#8217;s recommended to add <code>-d jammy<\/code> or <code>-d noble<\/code> flag to work safely:<\/p>\n<pre>sudo ppa-purge -d jammy ppa:kisak\/kisak-mesa<\/pre>\n<p>Here <code>jammy<\/code> and <code>noble<\/code> is the code-name of Ubuntu that Linux Mint is based on. If you don&#8217;t know which to use, run <code>cat \/etc\/os-release<\/code> to tell.<\/p>","protected":false},"excerpt":{"rendered":"<p>For those sticking to the open-source graphics driver, the latest Mesa 3D graphics library is easy to install via an Ubuntu PPA. Mesa is an open-source software implementation of OpenGL, Vulkan, VDPAU, VA-API, and other graphics API specifications. Ubuntu uses Mesa as OpenGL implementation if no proprietary driver is in use. It is however always [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34188,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1447],"class_list":["post-34184","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-mesa-3d-graphics-library"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/34184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=34184"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/34184\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34188"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=34184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=34184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=34184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}