Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing package leaves motd script in place, renders incorrect motd #28

Closed
panlinux opened this issue Jul 28, 2017 · 0 comments
Closed

Comments

@panlinux
Copy link
Contributor

panlinux commented Jul 28, 2017

From https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1707290:

Removing the ubuntu-advantage-tools package (not purging: removing) will leave the /etc/update-motd.d/99-esm script in place. Accordingly, it will run at login time, but since it calls out to the ubuntu-advantage script that no longer exists, it fails.

This is the sequence of events:

  • ubuntu-advantage-tools is installed
  • sudo ubuntu-advantage enable-esm with a valid token is run
  • logout and login, confirming that the MOTD says something like "This Ubuntu 12.04 system is configured to receive extended security updates"
  • remove (not purge) the ubuntu-advantage package. This will leave the sources.list.d/ file with the ESM repository in place and working, and the MOTD script, but remove the ubuntu-advantage script
  • logout and login. The MOTD will now say "This Ubuntu 12.04 LTS system is past its End of Life", even though the ESM repository is still enabled and functioning.
albertodonato added a commit that referenced this issue Aug 7, 2017
Check if ubuntu-advantage script is there before calling it (Fixes #28)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant