Skip to content

Instantly share code, notes, and snippets.

@mcandre
Created March 27, 2026 21:05
Show Gist options
  • Select an option

  • Save mcandre/4b14ae9ce3a8c8f35093ccf681fde188 to your computer and use it in GitHub Desktop.

Select an option

Save mcandre/4b14ae9ce3a8c8f35093ccf681fde188 to your computer and use it in GitHub Desktop.
Ubuntu Ad Block

Ubuntu Ad Block

Out of the box, Canonical Ubuntu spams users with intrusive advertisesments for Pro services, such as when running sudo apt upgrade.

Fix

sudo dpkg-divert --divert /etc/apt/apt.conf.d/20apt-esm-hook.conf.bak --rename --local /etc/apt/apt.conf.d/20apt-esm-hook.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment