{"id":47148,"date":"2024-09-01T15:25:21","date_gmt":"2024-09-01T15:25:21","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=47148"},"modified":"2024-09-01T15:25:21","modified_gmt":"2024-09-01T15:25:21","slug":"disable-ubuntu-pro-ubuntu-2404","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/09\/disable-ubuntu-pro-ubuntu-2404\/","title":{"rendered":"Disable Ubuntu Pro Updates in Ubuntu 24.04 Software Updater"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ubuntu2204-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-38307\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ubuntu2204-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ubuntu2204-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ubuntu2204-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ubuntu2204-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ubuntu2204-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ubuntu2204-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>This tutorial shows how to disable &#8220;Ubuntu Pro&#8221; security updates in both <code>apt<\/code> command output and Software Updater dialog in Ubuntu 24.04 LTS.<\/p>\n<p>Ubuntu Pro is a comprehensive subscription for Extended Security Maintenance (esm in short), which also enables another 5-year support for Ubuntu LTS releases. And, <b>it&#8217;s free for personal and small-scale commercial use on up to 5 machines.<\/b><\/p>\n<p>In all current Ubuntu LTS releases, the <code>apt upgrade<\/code> command and &#8220;Software Updater&#8221; display the Ubuntu Pro updates, which is quite annoying. Rather than <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2023\/05\/esm-apps-updates-ubuntu\/\" target=\"_blank\" rel=\"noopener\">enable Ubuntu Pro<\/a>, here&#8217;s how to get rid of the ads step by step.<\/p>\n<div id=\"attachment_47149\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/ubuntu-pro-updates.webp\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-47149\" class=\"size-large wp-image-47149\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/ubuntu-pro-updates-700x403.webp\" alt=\"\" width=\"610\" height=\"351\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/ubuntu-pro-updates-700x403.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/ubuntu-pro-updates-300x173.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/ubuntu-pro-updates-768x443.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/ubuntu-pro-updates.webp 1029w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><p id=\"caption-attachment-47149\" class=\"wp-caption-text\">Ubuntu Pro updates in Software Updater and terminal<\/p><\/div>\n<p><!--more--><\/p>\n<p><b>Someone has reported it as <a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/update-manager\/+bug\/2047778\" target=\"_blank\" rel=\"noopener\">bug<\/a>. It is marked as fixed, however, the Pro updates still appear when there&#8217;s any other updates in Software Updater or no other updates in apt upgrade command.<\/b><\/p>\n<p>Ubuntu Pro publishes security updates through the classic <code>.deb<\/code> packages. The software source is handled by config files under <code>\/var\/lib\/ubuntu-advantage\/apt-esm\/<\/code>, while, most other software sources are usually under <code>\/etc\/apt\/sources.list.d\/<\/code> directory.<\/p>\n<p>The key config file is <code>ubuntu-esm-apps.sources<\/code> (or <code>ubuntu-esm-apps.list<\/code> for 22.04). Just disable the file content will get rid of the &#8220;Ubuntu Pro&#8221; updates message from your system. For beginners, this can be done either via graphical way and in command line.<\/p>\n<h3>Option 1: Disable &#8220;Ubuntu Pro&#8221; software source (Graphical Way)<\/h3>\n<p>For Ubuntu 24.04 with the default GNOME Desktop, simply launch <b>Files<\/b> (aka Nautilus file manager). Then, navigate to &#8220;Other Locations&#8221; -&gt; Ubuntu -&gt; var -&gt; lib -&gt; ubuntu-advantage -&gt; apt-esm -&gt; etc -&gt; apt -&gt; sources.list.d.<\/p>\n<p>There you&#8217;ll see the key config file for the ESM updates. Just double-click on the file to open it with system default text editor.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/edit-ubuntupro-sources.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47150\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/edit-ubuntupro-sources-700x363.webp\" alt=\"\" width=\"610\" height=\"316\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/edit-ubuntupro-sources-700x363.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/edit-ubuntupro-sources-300x156.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/edit-ubuntupro-sources-768x398.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/edit-ubuntupro-sources-1320x685.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/edit-ubuntupro-sources.webp 1446w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>When file opens, add <b>#<\/b> at the beginning for all lines, so they are commented out and no longer function.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/disable-ubuntu-pro-sources.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47151\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/disable-ubuntu-pro-sources-700x456.webp\" alt=\"\" width=\"610\" height=\"397\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/disable-ubuntu-pro-sources-700x456.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/disable-ubuntu-pro-sources-300x195.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/disable-ubuntu-pro-sources-768x500.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/disable-ubuntu-pro-sources.webp 859w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Finally, click <b>Save<\/b> from &#8220;\u2261&#8221; menu (or press Ctrl+S). <b>Type user password for root authentication in pop-up dialog<\/b>, since the file does not belong to you. Done!<\/p>\n<h3>Option 2: Disable the source from command line<\/h3>\n<p>The last option may not work for non-GNOME desktop or Ubuntu 22.04 and earlier, due to permission issue. In the case, you may use the <code>nano<\/code> command line text editor that works in most desktop environments!<\/p>\n<p>First, press <code>Ctrl+Alt+T<\/code> to open up a terminal window. When it opens, run command to edit the config file:<\/p>\n<pre>sudo nano \/var\/lib\/ubuntu-advantage\/apt-esm\/etc\/apt\/sources.list.d\/ubuntu-esm-apps.sources<\/pre>\n<p>For Ubuntu 22.04 and Ubuntu 20.04, you may (or may not) need to replace <code>.sources<\/code> with <code>.list<\/code> in the command.<\/p>\n<p>Next, also comment out all the lines by using arrow keys to navigate, and adding <b>#<\/b> for each line. When done, press Ctrl+S to save and Ctrl+X to exit.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/nano-ubuntu-pro-sources.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47152\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/nano-ubuntu-pro-sources-700x505.webp\" alt=\"\" width=\"610\" height=\"440\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/nano-ubuntu-pro-sources-700x505.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/nano-ubuntu-pro-sources-300x216.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/nano-ubuntu-pro-sources.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Finally, re-launch &#8220;Software Updater&#8221; or use <code>sudo apt update<\/code> to refresh package list to apply changes!<\/p>\n<h3>Re-Enable Ubuntu Pro Security Updates:<\/h3>\n<p>For any time you want to enable Ubuntu Pro, re-run last command to edit the config file, and un-comment (remove # at beginning) the lines you disabled.<\/p>\n<p>If it does NOT work, try to open terminal (Ctrl+Alt+T) and run commands below one by one:<\/p>\n<ul>\n<li>First, run command to make sure the Ubuntu Pro client installed:\n<pre>sudo apt install ubuntu-pro-client<\/pre>\n<\/li>\n<li>Then, make sure the config directory exist:\n<pre>sudo mkdir -p \/var\/lib\/ubuntu-advantage\/apt-esm\/etc\/apt\/sources.list.d<\/pre>\n<\/li>\n<li>Next, edit (will auto-create if not exist) the key file by running command:\n<pre>sudo nano \/var\/lib\/ubuntu-advantage\/apt-esm\/etc\/apt\/sources.list.d\/ubuntu-esm-apps.sources<\/pre>\n<\/li>\n<li>Finally, add the lines below and save (Ctrl+S, then Ctrl+X).\n<pre>Types: deb\r\nURIs: https:\/\/esm.ubuntu.com\/apps\/ubuntu\r\nSuites: <b>noble<\/b>-apps-security <b>noble<\/b>-apps-updates\r\nComponents: main\r\nSigned-By: \/usr\/share\/keyrings\/ubuntu-pro-esm-apps.gpg<\/pre>\n<p>Here you need to replace system code-name <b>noble<\/b> with <code>focal for 20.04, or <b>jammy<\/b> for 22.04.<\/code><\/li>\n<\/ul>\n<p>When done, run <code>sudo apt update<\/code> or launch Software Updater to refresh cache.<\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to disable &#8220;Ubuntu Pro&#8221; security updates in both apt command output and Software Updater dialog in Ubuntu 24.04 LTS. Ubuntu Pro is a comprehensive subscription for Extended Security Maintenance (esm in short), which also enables another 5-year support for Ubuntu LTS releases. And, it&#8217;s free for personal and small-scale commercial use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38307,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2022],"class_list":["post-47148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-apt"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47148","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=47148"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47148\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/38307"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=47148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=47148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=47148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}