4

After logging into Ubuntu 22.04 via SSH, the usual welcome message does not refresh itself any longer and I don't know why this happens. In addition to that I get the following error message when running sudo apt update :

Failed to start apt-news.service: Unit apt-news.service not found.  
Failed to start esm-cache.service: Unit esm-cache.service not found.
karel
  • 114,770
smolinde
  • 123

2 Answers2

8

Solution: sudo apt install ubuntu-advantage-tools

smolinde
  • 123
5

Another solution (to remove the message on sudo apt update) is to disable the apt ESM hook completely:

$ sudo mv /etc/apt/apt.conf.d/20apt-esm-hook.conf /etc/apt/apt.conf.d/20apt-esm-hook.conf.disabled

Also, see this Q&A.

Artur Meinild
  • 26,018