Skip to content

Instantly share code, notes, and snippets.

@volkbay
Created March 1, 2025 21:02
Show Gist options
  • Save volkbay/22ec015ab20f7f5123f00145d748d778 to your computer and use it in GitHub Desktop.
Save volkbay/22ec015ab20f7f5123f00145d748d778 to your computer and use it in GitHub Desktop.
Disable Ubuntu PRO security news from ESM.

πŸ‘Ύ Error

During apt upgrade you get Ubuntu PRO ESM related news. Sometimes, they get quite long and annoying.

πŸ€” Why do I see this error ?

At some point, you should have accepted to receive ubuntu-pro news.

πŸ”Ž How to solve ?

The clean and easy way is to rule out repo information of the esm security updates.

πŸ•ŠοΈ Solution

There should be a file holding repository and GPG key information related to esm security updates. It is located under /var/lib/ubuntu-advantage/apt-esm/etc/apt/, but the exact file differs in between systems.

Open the repo config file by:

sudo gedit /var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d/ubuntu-esm-apps.sources

or:

sudo gedit /var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d/ubuntu-esm-apps.list

if not found, there should be a ubuntu-esm-apps.sources or ubuntu-esm-apps.list file near this location, could be in the parent folder.

After opening the correct file, comment out esm related repo information. In my case, that was sources file:

# Written by ubuntu-pro-client
# Types: deb
# URIs: https://esm.ubuntu.com/apps/ubuntu
# Suites: jammy-apps-security jammy-apps-updates
# Components: main
# Signed-By: /usr/share/keyrings/ubuntu-pro-esm-apps.gpg

Note

If it is a list file in your case, you may safely comment out deb and deb-src lines as long as they include esm.ubuntu... URLs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment