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](https://serverok.in/wp-content/uploads/2024/03/ubuntu-pro-ads.webp)
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](https://serverok.in/wp-content/uploads/2024/03/apt-no-ubuntu-pro-ads.webp)
Back to Ubuntu