From ef1ed79071e5d4517f71dd06bc9685b8e2f7ad83 Mon Sep 17 00:00:00 2001 From: Jan Jastrow Date: Wed, 30 Oct 2024 22:28:03 +0100 Subject: [PATCH] Also here --- scripts/ubuntu-disable-ads.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/ubuntu-disable-ads.sh b/scripts/ubuntu-disable-ads.sh index edb790e..21eba3a 100755 --- a/scripts/ubuntu-disable-ads.sh +++ b/scripts/ubuntu-disable-ads.sh @@ -3,3 +3,6 @@ set -uo pipefail # Comment out all URLs in this apt source sudo sed -i'' -e 's/^\(\s\+\)\([^#]\)/\1# \2/' /etc/apt/apt.conf.d/20apt-esm-hook.conf + +# Also here +sudo sed -i'' -e '/^[^#]/ s/^/# /' /var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d/ubuntu-esm-apps.sources