ubuntu ad showing as a required update

Discussion in 'General' started by rsteuer, Oct 30, 2022.

  1. rsteuer

    rsteuer Member

    Running Ubuntu 20.04 on several servers in a cluster. After recent upgrades, checking the Server State indicates a required update. The required update indicates:
    Try Ubuntu Pro beta with a free personal subscription on up to 5 machines.
    Learn more at https://ubuntu.com/pro

    Any way to get rid of these or prevent them from being listed as a required update?
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    This was discussed in the forum already IIRC, but can't seem to find it. However here is the official ubuntu bug tracker.
    You can disable it till it is fixed with this:

    Code:
    sudo mv /etc/apt/apt.conf.d/20apt-esm-hook.conf /etc/apt/apt.conf.d/20apt-esm-hook.conf.bak
    
    sudo touch /etc/apt/apt.conf.d/20apt-esm-hook.conf
     
  3. rsteuer

    rsteuer Member

    Thanks for the quick reply, pyte. I searched the forum before posting but could not find any posts relating to the issue.

    By handling it this way, isn't this a fix for just this specific instance? By copying the file and renaming with a .bak extension and then recreating the file, will that just display a new ad if one is issued?

    Also found these recommendations:
    • Edit same file as you mentioned, /etc/apt/apt.conf.d/20apt-esm-hook.conf, as follows:
      "[ ! -f /usr/lib/ubuntu-advantage/apt-esm-hook ] || /usr/lib/ubuntu-advantage/apt-esm-hook pre-invoke || true";

    • Rename messages in /var/lib/ubuntu-advantage/
    Again, all of these appear to be temp solutions. Hard to believe Canonical is doing this/
     
  4. pyte

    pyte Well-Known Member HowtoForge Supporter

    Thats correct these are all temporary Fixes. We have to see what happens, you can follow the issue on the bugtracker and see what is going on.

    But nonetheless this temp fix should last as long as that specific package is not update, and i don't think it is very often. Could bei wrong here, i haven't looked into it as it dosen't brother me. Use Debian for your Servers If cannonicals decisions bother you :) I use Debian on all my Servers, as i don't like cannonicals decisions such as snapd on the Server
     
  5. rsteuer

    rsteuer Member

    Thanks again. We actually migrated from Debian a few years ago. We had too many issues with packages breaking, which we've not encountered since going to Ubuntu. Too many instances of needing to roll back updates to keep servers running with the packages installed. When offering services to clients, we could not afford the dissatisfaction clients were expressing because services were down until we were able to get them back online. We have not had a single instance since we decided to run on Ubuntu.

    We'll continue to modify the file as you've recommended.
     
  6. pyte

    pyte Well-Known Member HowtoForge Supporter

    Thats kinda strange. As long as you use Debian Stable there shouldn't be any package updates that break functionality. On stable releases the major package version does not change.
    The only issue i had on a mail / webserver with Debian was a change in dovecot, when a encryption setting changed. This machine was initially installed with Debian 8 and lives to this date, now on version 1.

    However i think just use whatever works for you, and you have experience with. There isn't that much difference between these both anyway :)
     
  7. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

Share This Page