{"id":44002,"date":"2023-05-17T12:11:06","date_gmt":"2023-05-17T12:11:06","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=44002"},"modified":"2025-11-15T12:51:09","modified_gmt":"2025-11-15T12:51:09","slug":"esm-apps-updates-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/05\/esm-apps-updates-ubuntu\/","title":{"rendered":"Enable Ubuntu Pro for 5 Years More Support in 24.04, 22.04, 20.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-43228\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Ubuntu now provides <b>expanded security maintenance (esm)<\/b> updates for the packages in main\/universe repositories through &#8220;Ubuntu Pro&#8221; service.<\/p>\n<p>With it, you can <b>get 5 years more Expanded Security Maintenance<\/b> support for Ubuntu LTS after standard support. Meaning Ubuntu 22.04 is supported until 2032, Ubuntu 20.04 is supported until 2030, and Ubuntu 18.04 is supported until 2028. And, paid users can get additional 5 years of security support through legacy add-on.<\/p>\n<p>For Ubuntu Server or Desktop users that use <code>apt upgrade<\/code> to install updates, you&#8217;ll get following prompt in the output:<\/p>\n<p>&#8220;<b><i>Get more security updates through Ubuntu Pro with &#8216;esm-apps&#8217; enabled: &#8230;<\/i><\/b>&#8221;<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/aptupgrade-esm-apps.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44003\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/aptupgrade-esm-apps-600x352.webp\" alt=\"\" width=\"600\" height=\"352\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/aptupgrade-esm-apps-600x352.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/aptupgrade-esm-apps-300x176.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/aptupgrade-esm-apps-768x451.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/aptupgrade-esm-apps.webp 1000w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>In this tutorial, I&#8217;m going to show you how to get rid of this &#8220;esm-apps&#8221; prompt by:<\/p>\n<ul>\n<li>either enable Ubuntu Pro security updates.<\/li>\n<li>or skip the esm-apps updates and disable the command line prompt.<\/li>\n<\/ul>\n<h3>Option 1: Enable Ubuntu Pro Security Updates<\/h3>\n<p><b>For each user, Ubuntu Pro is free for up to 5 machines for personal use!<\/b> Here&#8217;s how to enable it in both graphical and command line ways!<\/p>\n<h4>For Ubuntu Desktop<\/h4>\n<p>1. For Desktop users, first search for and launch &#8220;<b>Software &amp; Updates<\/b>&#8221; tool from &#8216;Activities&#8217; overview.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-softwareupdates.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44004\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-softwareupdates-600x327.webp\" alt=\"\" width=\"600\" height=\"327\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-softwareupdates-600x327.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-softwareupdates-300x164.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-softwareupdates.webp 748w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2. When it opens, navigate to &#8220;<b>Ubuntu Pro<\/b>&#8221; tab, and click on &#8220;Enable Ubuntu Pro&#8221; button. In the pop-up dialog will show you a short code.<\/p>\n<p><i>For Ubuntu 18.04, run <code>sudo apt update &amp;&amp; sudo apt full-upgrade<\/code> command first if you don&#8217;t see the &#8216;Ubuntu Pro&#8217; tab.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-pro-keypair.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44005\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-pro-keypair-600x329.webp\" alt=\"\" width=\"600\" height=\"329\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-pro-keypair-600x329.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-pro-keypair-300x164.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-pro-keypair-768x421.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-pro-keypair.webp 1230w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>3. Next, in your web browser go to <a href=\"https:\/\/ubuntu.com\/pro\/attach\">https:\/\/ubuntu.com\/pro\/attach<\/a>. Login with your account (<em>create for free if you don&#8217;t have one<\/em>). Finally, enter the code you got in the last step, and then click &#8220;Submit&#8221;.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntuproattach.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44006\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntuproattach-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntuproattach-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntuproattach-300x204.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntuproattach-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntuproattach-1536x1043.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntuproattach-2048x1390.webp 2048w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntuproattach-1320x896.webp 1320w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>4. Finally, go back &#8220;Software &amp; Updates&#8221; and click &#8220;Confirm&#8221; (see screenshot in step 2). When done, you&#8217;ll see the &#8220;Ubuntu Pro support is enabled&#8221; text in green. And, you can toggle the options to enable\/disable ESM Infra, ESM apps, Kernel Livepatch as you want.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-proenabled.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44007\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-proenabled-600x367.webp\" alt=\"\" width=\"600\" height=\"367\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-proenabled-600x367.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-proenabled-300x184.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-proenabled-768x470.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-proenabled-1536x941.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-proenabled-1320x808.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/ubuntu-proenabled.webp 2018w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h4>For Ubuntu Server (command line way)<\/h4>\n<p>For Server and those who prefer Linux command, this can be done by running a single command in console.<\/p>\n<p>First, in web browser go to <a href=\"https:\/\/ubuntu.com\/pro\/dashboard\" target=\"_blank\" rel=\"noopener\">https:\/\/ubuntu.com\/pro\/dashboard<\/a>. Log in with your account (<i>create if you don&#8217;t have one<\/i>), then copy or write down the key token.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/copy-token.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44008\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/copy-token-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/copy-token-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/copy-token-300x204.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/copy-token-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/copy-token-1536x1043.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/copy-token-2048x1390.webp 2048w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/copy-token-1320x896.webp 1320w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Then, in terminal or command console, run:<\/p>\n<pre>sudo pro attach KEY_TOKEN_HERE<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/enable-pro-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44009\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/enable-pro-command-600x323.webp\" alt=\"\" width=\"600\" height=\"323\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/enable-pro-command-600x323.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/enable-pro-command-300x162.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/enable-pro-command-768x414.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/enable-pro-command-1536x828.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/enable-pro-command-2048x1104.webp 2048w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/enable-pro-command-1320x711.webp 1320w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>When done, it outputs the enabled and disabled services in terminal output. You can then run command to enable\/disable your desired services:<\/p>\n<ul>\n<li>Enable an Ubuntu Pro service.\n<pre>sudo pro enable SERVICE_NAME<\/pre>\n<\/li>\n<li>Disable access an Ubuntu Pro service.\n<pre>sudo pro disable SERVICE_NAME<\/pre>\n<\/li>\n<\/ul>\n<p>In the commands, replace <code>SERVICE_NAME<\/code> with one of <code>esm-apps<\/code>, <code>esm-infra<\/code>, <code>livepatch<\/code>, <code>realtime-kernel<\/code>.<\/p>\n<p><b>To disable Ubuntu Pro<\/b>, as well as all enabled services, run command:<\/p>\n<pre>sudo pro detach<\/pre>\n<h3>Get Rid of &#8220;esm-apps&#8221; command line prompt without enabling Ubuntu Pro<\/h3>\n<p><b>UPDATE: if this step does NOT work, try to <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2024\/09\/disable-ubuntu-pro-ubuntu-2404\/\" target=\"_blank\" rel=\"noopener\">disable the Ubuntu Pro software sources<\/a> instead!<\/b><\/p>\n<p>If you don&#8217;t want to install the expanded security updates, you can also disable the command line prompt by removing the config file.<\/p>\n<p>It&#8217;s handled by the &#8220;<code>20apt-esm-hook.conf<\/code>&#8221; config file under &#8220;\/etc\/apt\/apt.conf.d\/&#8221; directory.<\/p>\n<p>First, press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal. When it opens, run command to navigate to that directory:<\/p>\n<pre>cd \/etc\/apt\/apt.conf.d\/<\/pre>\n<p>Then, create a backup folder to store the config file as backup. So, you can restore the change at any time by moving the file back.<\/p>\n<pre>sudo mkdir -p \/etc\/apt\/backup<\/pre>\n<p>Finally, moving the config file to backup folder you just created:<\/p>\n<pre>sudo mv 20apt-esm-hook.conf \/etc\/apt\/backup\/<\/pre>\n<p>To apply change, also run <code>sudo apt update<\/code>.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/mv-esm-hook.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44010\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/mv-esm-hook-600x295.webp\" alt=\"\" width=\"600\" height=\"295\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/mv-esm-hook-600x295.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/mv-esm-hook-300x148.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/mv-esm-hook-768x378.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/mv-esm-hook-1536x755.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/mv-esm-hook-2048x1007.webp 2048w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/mv-esm-hook-1320x649.webp 1320w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>To restore, run command to move the file back:<\/p>\n<pre>sudo mv \/etc\/apt\/backup\/20apt-esm-hook.conf \/etc\/apt\/apt.conf.d\/ &amp;&amp; sudo apt update<\/pre>\n<p>That&#8217;s all. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>Ubuntu now provides expanded security maintenance (esm) updates for the packages in main\/universe repositories through &#8220;Ubuntu Pro&#8221; service. With it, you can get 5 years more Expanded Security Maintenance support for Ubuntu LTS after standard support. Meaning Ubuntu 22.04 is supported until 2032, Ubuntu 20.04 is supported until 2030, and Ubuntu 18.04 is supported until [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":43228,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2039],"class_list":["post-44002","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-security"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44002","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=44002"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44002\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/43228"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=44002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=44002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=44002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}