6

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
  • 122,292
  • 133
  • 301
  • 332
smolinde
  • 161

2 Answers2

13

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

$ sudo dpkg-divert --rename --divert /etc/apt/apt.conf.d/20apt-esm-hook.conf.disabled --add /etc/apt/apt.conf.d/20apt-esm-hook.conf

Also, see this Q&A.

Artur Meinild
  • 31,035
9

Solution: sudo apt install ubuntu-advantage-tools

smolinde
  • 161