the latest marketing idea from the Ubuntu team is to announce their pro support in the output of apt:
<<<apt:sep(0):cached(1664105717,86400)>>>
Receive additional future security updates with Ubuntu Pro.
Learn more about Ubuntu Pro at https://ubuntu.com/pro
Isn’t it nice to know that futurue security updates for Ubuntu 20.04 are only available through a “Pro” subscription?
The funniest part? The URL https://ubuntu.com/pro throws a 404 HTTP error.
Unfortunately this makes the mk_apt agent plugin and its associated check plugin stop working as this output is not expected.
Maybe there could be a more robust parse function be implemented that is able to ignore everything except for the expected information, @LaMi?
To remove the marketing output comment out everything in the files /etc/apt/apt.conf.d/20apt-esm-hook.conf and /etc/apt/sources.list.d/ubuntu-esm-apps.list.
The package ubuntu-advantage-tools is a direct dependency for the packages update-manager-core and ubuntu-minimal and cannot be removed without these packages also being removed.
Thanks for the information about this issue. Very annoying!
We will have a look in the next sprint and hopefully can make our code more resilient to Ubuntu advertisements
I see this solution only as a temporary solve until a/the mk_apt can successfully filter this out.
Commenting apt conf and/or sources is from my point of view - as it is not under the control of CMK itself dangerous and can have unwanted side-effects on the monitored system.
Plus maybe in future updates this will be re-enabled, so the solution should be done in the plugin itself, not on the monitored system.
I encountered the same issue, but found a different solution.
Since this headline is not really well picked for google searches, I only found this thread after creating a forum account and navigating to the right topic.
Anyways, here is what I did to solve it, and it seems to work so far and also dont feels that “risky” in terms of going too deep into the core system.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.