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.

apt ubuntu pro advertisements disabled

Back to Ubuntu

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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