To get rid of the spam, uninstall the program generating the spam.
The package that generates this spam is ubuntu-advantage-tools
. Unfortunately removing it is tricky since Ubuntu devs
have decided to make this a required system package so they can make more money
(yes, that is their official justification).
A clever person named vi0oss
came up with a workaround: replace the spammy package with an additional package which Provides
, Breaks
and Conflicts
with ubuntu-advantage-tools
. When this fix broke due to Ubuntu devs requiring a later version, gamemanj found a second workaround. All this has been
bundled into the latest version linked below.
Guide
- Download the fake package here.
- (Optional) Verify package with
dpkg -I fake-ubuntu-advantage-tools.deb
to check the metadata to see how it works:
new Debian package, version 2.0.
size 744 bytes: control archive=384 bytes.
300 bytes, 8 lines control
Package: fake-ubuntu-advantage-tools
Version: 0.1
Architecture: all
Conflicts: ubuntu-advantage-tools
Breaks: ubuntu-advantage-tools
Provides: ubuntu-advantage-tools
Description: Ban ubuntu-advantage-tools while satisfying ubuntu-minimal dependency
Maintainer: Vitaly _Vi Shukela
- (Optional) Verify package with
dpkg -c fake-ubuntu-advantage-tools.deb
to check it's actually empty:
drwxr-xr-x root/root 0 2022-10-31 11:58 ./
- Install the package:
apt install ./fake-ubuntu-advantage-tools.deb
The following packages will be REMOVED:
ubuntu-advantage-tools
The following NEW packages will be installed:
fake-ubuntu-advantage-tools
0 upgraded, 1 newly installed, 1 to remove and 1 not upgraded.
- No more ads!
Bonus: I have uploaded a page with additional ubuntu spam fighting steps on github here to get rid of MOTD spam, etc.
/etc/update-motd.d
could be causing this annoyance. General info here: https://ubuntu.com/legal/motd, looks easy enough to disable: "/etc/default/motd-news has an ENABLED=1 setting that if set to 0 will turn off this functionality." – andrew.46 Oct 09 '22 at 08:44