14

When upgrading system with sudo apt upgrade I'm getting the following message:

(..)
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
(..)

I know it's a paid service that can be used by up to 5 hosts/systems for free if it's for personal use, but I don't want to use it. I don't want to get more security updates and in addition, I don't want to see the above message each time I run an upgrade.

sobi3ch
  • 1,055

1 Answers1

4

There are hacky way to do it

But if you want to remove all 'pro' services then just uninstall ubuntu advantages package:

sudo apt remove ubuntu-advantage-tools

In result pro command with its esm hook will disappear from you system:

$ whereis pro
pro:

$ type /etc/apt/apt.conf.d/20apt-esm-hook.conf -bash: type: /etc/apt/apt.conf.d/20apt-esm-hook.conf: not found

sobi3ch
  • 1,055
  • 4
    Does that remove any other packages? – Organic Marble Apr 17 '23 at 12:14
  • Give it a try? You can cancel by pressing n – Gilles Quénot Apr 17 '23 at 13:03
  • pop-default-settings : Depends: ubuntu-minimal but it is not going to be installed``` – sds Apr 19 '23 at 21:48
  • 1
    This will break quite a few packages. At least, as of now. (They may have changed the dependencies since you created the answer.) For me, trying to remove ubuntu-advantage-tools says that ubuntu-minimal and updte-manager-core as well as software-properties-gtk depend on it. – atleta Jan 04 '24 at 14:04
  • But actually it's free for personal use on up to 5 machines (and it includes machines own by your own businesses). – atleta Jan 04 '24 at 14:17
  • @atleta that’s already mentioned in the question – bfontaine Apr 19 '24 at 10:37
  • @bfontaine True, part of it is. The reason I added it, after leaving a comment about how the proposed solution didn't work was that I was relieved to learn that personal use covers use for your own business . That could be interesting for a lot of small business owners, entrepreneurs, and self-employed people. – atleta Apr 23 '24 at 23:03
  • It worked for me but now I am getting the following message on apt update, but that doesn't do much. Failed to start apt-news.service: Unit apt-news.service not found.
    Failed to start esm-cache.service: Unit esm-cache.service not found.
    ....
    – Max Aug 16 '24 at 08:58