
{"id":51253,"date":"2026-05-22T11:52:18","date_gmt":"2026-05-22T11:52:18","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=51253"},"modified":"2026-05-22T11:52:18","modified_gmt":"2026-05-22T11:52:18","slug":"install-nvidia-drivers-ubuntu-26-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2026\/05\/install-nvidia-drivers-ubuntu-26-04\/","title":{"rendered":"How to Install NVIDIA Drivers in Ubuntu 26.04 [in Two Ways]"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-38385\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/nvidia-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>This is a step by step beginners guide shows how to install the most recent NVIDIA drivers in Ubuntu 26.04 LTS.<\/p>\n<p>There are two official ways to install NVIDIA drivers in Ubuntu: one from Ubuntu developers, the other from NVIDIA website.<\/p>\n<p><!--more--><\/p>\n<p>The drivers from the system repository are maintained by Ubuntu developers. Not only the latest version (NVIDIA 595 so far), it also provides old drivers, such as NVIDIA 535, 550, 560, 570, 580, 590 for choices. However, it always has a few weeks (or even few months) delay for the latest driver updates.<\/p>\n<p>NVIDIA website also maintains the drivers packages in <code>.deb<\/code>\/<code>.rpm<\/code> for Linux users. And, it will always update them to the latest once it&#8217;s released.<\/p>\n<div id=\"attachment_50873\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-50873\" class=\"size-large wp-image-50873\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/04\/nvidia59558-700x473.webp\" alt=\"\" width=\"610\" height=\"412\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/04\/nvidia59558-700x473.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/04\/nvidia59558-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/04\/nvidia59558-768x519.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/04\/nvidia59558.webp 858w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><p id=\"caption-attachment-50873\" class=\"wp-caption-text\">NVIDIA 595.58.<\/p><\/div>\n<h3>Option 1: Install NVIDIA Driver from Ubuntu System Repository (Recommend)<\/h3>\n<p>The best choice is always use the packages from Ubuntu developers, as they are tested and built with Ubuntu specific patches.<\/p>\n<p>Ubuntu used to have a graphical <b>&#8220;Additional Drivers&#8221;<\/b> tool for managing drivers, which is however removed from default install in Ubuntu 26.04. You can get it back by installing &#8220;Software &amp; Updates&#8221; from App Center, though it does no longer work properly in 26.04.<\/p>\n<p>To install Ubuntu&#8217;s driver packages, we now use the <code>ubuntu-drivers<\/code> command line tool<\/p>\n<p><b>For Desktop, Gaming, and other general use<\/b>, press <code>Ctrl+Alt+T<\/code> to open terminal, and run the commands below one by one:<\/p>\n<ul>\n<li>First, run command to list all available drivers for your hardware:\n<pre>sudo ubuntu-drivers list<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51254\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/udriver-list2604-700x537.webp\" alt=\"\" width=\"610\" height=\"468\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/udriver-list2604-700x537.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/udriver-list2604-300x230.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/udriver-list2604.webp 702w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/li>\n<li>Then, install one, such as NVIDIA 595, via command:\n<pre>sudo ubuntu-drivers install nvidia:595<\/pre>\n<p>For open kernel modules, use <code>nvidia:595-open<\/code> instead. And, you may use <code>sudo ubuntu-drivers install<\/code> to let it automatically choose and install the best driver for your hardware.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51255\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/udriver-install595-700x505.webp\" alt=\"\" width=\"610\" height=\"440\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/udriver-install595-700x505.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/udriver-install595-300x216.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/udriver-install595-768x554.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/udriver-install595.webp 819w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/li>\n<\/ul>\n<p><b>For computing or server use,<\/b> open terminal or connect to command console, and run commands:<\/p>\n<ul>\n<li>First, list drivers:\n<pre>sudo ubuntu-drivers install --gpgpu<\/pre>\n<\/li>\n<li>Then install driver, such as NVIDIA595:\n<pre>sudo ubuntu-drivers install --gpgpu nvidia:595-server<\/pre>\n<\/li>\n<\/ul>\n<p>After successfully installed NVIDIA driver, reboot your computer or server. And, run <code>cat \/proc\/driver\/nvidia\/version<\/code> command to check the version of your currently running driver.<\/p>\n<p><b>Uninstall<\/b>:<\/p>\n<p>For any reason, you may uninstall the NVIDIA driver by running the 2 commands below one by one in terminal or command console.<\/p>\n<ul>\n<li>First, run command to tell the version of your currently running driver:\n<pre>cat \/proc\/driver\/nvidia\/version<\/pre>\n<\/li>\n<li>Next, uninstall by running command (replace version number 595 accordingly):\n<pre>sudo apt --purge remove '*nvidia*595*'<\/pre>\n<\/li>\n<\/ul>\n<p>Finally restart computer.<\/p>\n<h3>Option 2: Install Driver from NVIDIA Website<\/h3>\n<p>When a new version is out, and you can&#8217;t wait a few weeks or even months for Ubuntu updates, then you may try the one from NVIDIA&#8217;s website.<\/p>\n<p><b>NOTE: You need to remove Ubuntu&#8217;s driver package first (if installed), via the command above, before installing this one.<\/b><\/p>\n<p><b>1. Add NVIDIA Repository<\/b><\/p>\n<p>First, go to link below and select download the &#8220;<code>cuda-keyring_1.1-1_all.deb<\/code>&#8221; package.<\/p>\n<p style=\"text-align: center;\">Download CUDA Keyring for <a href=\"https:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu2604\/x86_64\/\" target=\"_blank\" rel=\"noopener\">Ubuntu 26.04<\/a>, <a href=\"https:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu2404\/x86_64\/\" target=\"_blank\" rel=\"noopener\">Ubuntu 24.04<\/a>, or <a href=\"https:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu2204\/x86_64\/\" target=\"_blank\" rel=\"noopener\">Ubuntu 22.04<\/a> on Intel\/AMD platform.<\/p>\n<p>Then click open and install the package with App Center, which will setup NVIDIA repository for your Ubuntu.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/download-cudakeyring.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51256\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/download-cudakeyring-700x437.webp\" alt=\"\" width=\"610\" height=\"381\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/download-cudakeyring-700x437.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/download-cudakeyring-300x187.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/download-cudakeyring-768x479.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/download-cudakeyring.webp 1180w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>For choice, you may open terminal (Ctrl+Alt+T) and run the command below instead to download &amp; install the package to setup NVIDIA repository:<\/p>\n<pre>wget https:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu2604\/x86_64\/cuda-keyring_1.1-1_all.deb<\/pre>\n<pre>sudo apt install .\/cuda-keyring_1.1-1_all.deb<\/pre>\n<p>Though you need to replace <code>ubuntu2604<\/code> according to your Ubuntu version, and <code>x86_64<\/code> to <code>sbsa<\/code> if you&#8217;re on ARM64 device, such as Snapdragon X.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51257\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-cudakeyring-700x482.webp\" alt=\"\" width=\"610\" height=\"420\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-cudakeyring-700x482.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-cudakeyring-300x207.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-cudakeyring-768x529.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-cudakeyring.webp 815w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><b>2. Refresh &amp; install driver<\/b><\/p>\n<p>After added NVIDIA repository, run the command below to refresh cache:<\/p>\n<pre>sudo apt update<\/pre>\n<p>It will show you something that looks like &#8220;Get\/Hit: https:\/\/developers.nvidia.com\/ &#8230;&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51259\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-update-nvidia-700x482.webp\" alt=\"\" width=\"610\" height=\"420\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-update-nvidia-700x482.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-update-nvidia-300x207.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-update-nvidia-768x529.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-update-nvidia.webp 815w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>Next, run command to install kernel headers, and build-essential for building the kernel modules.<\/p>\n<pre>sudo apt install linux-headers-$(uname -r) build-essential<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51260\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-kernelheaders-700x537.webp\" alt=\"\" width=\"610\" height=\"468\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-kernelheaders-700x537.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-kernelheaders-300x230.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/apt-kernelheaders.webp 702w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>Finally, install the latest NVIDIA driver <b>for both desktop, gaming, computing and server use<\/b> via command:<\/p>\n<pre>sudo apt install cuda-drivers<\/pre>\n<p>If you would like to install the open kernel modules, replace <code>cuda-drivers<\/code> with <code>nvidia-open<\/code> in last command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51261\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/aptnvidia-open-700x506.webp\" alt=\"\" width=\"610\" height=\"441\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/aptnvidia-open-700x506.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/aptnvidia-open-300x217.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/aptnvidia-open-768x556.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/05\/aptnvidia-open.webp 832w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>Also restart computer after installed the new driver.<\/p>\n<p><b>Uninstall:<\/b><\/p>\n<p>You may remove the driver packages installed from NVIDIA repository by running command:<\/p>\n<pre>sudo apt remove --autoremove nvidia-open nvidia-driver cuda-keyring<\/pre>\n<p>Then, remove the repository by deleting the source and key files:<\/p>\n<pre>sudo rm \/etc\/apt\/sources.list.d\/cuda-ubuntu*.list<\/pre>\n<p><b>In addition for laptop users<\/b> with both Intel\/AMD integrated GPU and NVIDIA dedicated GPU, there&#8217;s an extension for default GNOME desktop that add a switch to top-right quick settings menu, allowing to quickly switch between GPUs.<\/p>\n<p>Simply install &#8220;Extension Manager&#8221; (Debian package) from App Center, then use it to search &amp; install the &#8220;GPU profile selector&#8221; extension. Though, you need to also download &amp; install &#8220;envycontrol&#8221; (<code>.deb<\/code> package under Assets section) from <a href=\"https:\/\/github.com\/bayasdev\/envycontrol\/releases\" target=\"_blank\" rel=\"noopener\">this page<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46461\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/05\/gpu-profiler-extension-700x548.webp\" alt=\"\" width=\"610\" height=\"478\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/05\/gpu-profiler-extension-700x548.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/05\/gpu-profiler-extension-300x235.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/05\/gpu-profiler-extension-768x601.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/05\/gpu-profiler-extension.webp 922w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><b>Reading more:<\/b><\/p>\n<p><a href=\"https:\/\/ubuntu.com\/server\/docs\/how-to\/graphics\/install-nvidia-drivers\/\" target=\"_blank\">https:\/\/ubuntu.com\/server\/docs\/how-to\/graphics\/install-nvidia-drivers\/<\/a><br \/>\n<a href=\"https:\/\/docs.nvidia.com\/datacenter\/tesla\/driver-installation-guide\/ubuntu.html\" target=\"_blank\">https:\/\/docs.nvidia.com\/datacenter\/tesla\/driver-installation-guide\/ubuntu.html<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This is a step by step beginners guide shows how to install the most recent NVIDIA drivers in Ubuntu 26.04 LTS. There are two official ways to install NVIDIA drivers in Ubuntu: one from Ubuntu developers, the other from NVIDIA website.<\/p>\n","protected":false},"author":1,"featured_media":38385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[656],"class_list":["post-51253","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-nvidia"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/51253","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=51253"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/51253\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/38385"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=51253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=51253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=51253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}