Thank for maintaining this helpful overview.
After implementing the changes i found two possible improvements
apt-get purge ubuntu-advantage-tools after installing the fake package. This automatically removes the hole /var/lib/ubuntu-advantage directory seems the cleaner way than removing only the cached messages.
- In
/usr/lib/update-notifier/apt_check.py instead of changing the two functions you can change the Line ESM_INFRA_ORIGIN = "UbuntuESM" to some other value like ESM_INFRA_ORIGIN = "UbuntuESM_disabled" which disables the messages without changing actual code. The command would be like sudo sed -Ezi.orig 's/ESM_INFRA_ORIGIN = "UbuntuESM"/ESM_INFRA_ORIGIN = "UbuntuESM_disabled"/' /usr/lib/update-notifier/apt_check.py
Thank for maintaining this helpful overview.
After implementing the changes i found two possible improvements
apt-get purge ubuntu-advantage-toolsafter installing the fake package. This automatically removes the hole/var/lib/ubuntu-advantagedirectory seems the cleaner way than removing only the cached messages./usr/lib/update-notifier/apt_check.pyinstead of changing the two functions you can change the LineESM_INFRA_ORIGIN = "UbuntuESM"to some other value likeESM_INFRA_ORIGIN = "UbuntuESM_disabled"which disables the messages without changing actual code. The command would be likesudo sed -Ezi.orig 's/ESM_INFRA_ORIGIN = "UbuntuESM"/ESM_INFRA_ORIGIN = "UbuntuESM_disabled"/' /usr/lib/update-notifier/apt_check.py