.dotfiles/scripts/ubuntu-disable-ads.sh

9 lines
296 B
Bash
Raw Permalink Normal View History

2024-10-30 22:21:23 +01:00
#!/usr/bin/env bash
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
2024-10-30 22:28:03 +01:00
# Also here
sudo sed -i'' -e '/^[^#]/ s/^/# /' /var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d/ubuntu-esm-apps.sources