How to Disable apt Ubuntu Pro Advertisement

On running “apt upgrade” command on Ubuntu 20.04 and newer, Ubuntu shows an advertisement about Ubuntu Pro subscription.

apt Ubuntu Pro advertisement

To disable the Ubuntu Pro advertisement that appears when updating apt, run

sudo mv /etc/apt/apt.conf.d/20apt-esm-hook.conf /etc/apt/apt.conf.d/20apt-esm-hook.conf.bak
sudo touch /etc/apt/apt.conf.d/20apt-esm-hook.conf

After running these commands, running “apt upgrade”, you won’t get the Ubuntu Pro advertisement.

Advertisement

apt ubuntu pro advertisements disabled

Back to Ubuntu

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement