Turn off annoying Ubuntu Pro advertising, e.g. for Ubuntu 22.04 (Tutorial)

Опубликовано: 17 Июль 2026
на канале: FOSS & Linux Journal
1,440
44

Are you also annoyed by messages like:

"Get more security updates though Ubuntu Pro with 'esm-apps' enabled"

when you update your Ubuntu system in the terminal with APT? No problem! I'll show you 5 possible ways out and of course how you can get over it.

Commands:

Goto directory:
cd /etc/apt/apt.conf.d

Backup file
sudo cp -p 20apt-esm-hook.conf $USER/Downloads

Truncate file
sudo truncate -s0 20apt-esm-hook.conf

check empty file
cat 20apt-esm-hook.conf

redo upgrade command
sudo apt upgrade

Advert is gone!! :-)
________________________________________________________

► Please support my project with a YT channel membership
   / @fosslinuxjournal  

► Become a Patreon and support the channel
https://patreon.com/user?u=91089357

► Become a supporter and buy me a coffee
https://www.buymeacoffee.com/fosslinu...
________________________________________________________

► Literature Recommendations for further education

Ubuntu 22.04 LTS Desktop: Applications and Administration (English Edition):
https://amzn.to/457zTMu

Ubuntu 22.04 LTS Server: Administration and Reference (English Edition):
https://amzn.to/43RGfi3

Linux Mint 21: Desktops and Administration (English Edition):
https://amzn.to/45dJIZy

Arch Linux: Quick Guide for Beginners (Linux for Beginners Book 2) (English Edition):
https://amzn.to/43Sl8w6

Linux Bible:
https://amzn.to/3DFSaov

Efficient Linux at the Command Line: Boost Your Command-Line Skills:
https://amzn.to/3OeNZoy

AFFILIATE DISCLOSURES:
I get commissions for purchases made through this links.

________________________________________________________

► Follow FLJ on Twitter
  / linuxfossjourn  

________________________________________________________


► My other YT channel in German language
   / @michlfranken  

________________________________________________________

► General information

As an Amazon affiliate, I earn qualifying sales.

I own a legal license of Final Cut Pro X, which covers commercial use of royalty-free content in FCP.

The contributions of FLJ basically are basically a non-binding demo. Re-enactment at your own risk. Improper adjustments can result in negative consequences such as data loss or system failures. Any form of warranty excluded. If in doubt, please set up and test a virtual machine, but do not reproduce it on a productive system. Everything at your own risk and without any guarantee. I assume no liability for data loss, defects or other damage.