0

I have a Ubuntu 18.04.6 LTS machine that says to me, after logging in:

444 updates can be applied immediately.

To see these additional updates run: apt list --upgradable

But when I use apt list --upgradable, as suggested, it lists just 4 available updates.

  • Why is the machine lying to me?

I don't remember doing anything that could possibly justify this passive-agressive behaviour towards me.

  1. The suggestion to logout and login again is not fixing the MOTD;
  2. The suggestion to run run-parts /etc/update-motd.d/ does not fixes MOTD, as it just displays it again, and cat /run/motd.dynamic.new can't work because No such file or directory.
  • 2
    Previous discussion suggests that you seem to have a different problem with MOTD itself. Check your syslog for clues. I don't run 18.04 anymore, so will bow out. – user535733 Feb 23 '23 at 13:44
  • @user535733 Maybe it could be caused by [this 'unmet dependencies' error](https://askubuntu.com/questions/1456349/unmet-dependencies-containerd-breaks-docker-io)? – BsAxUbx5KoQDEpCAqSffwGy554PSah Feb 23 '23 at 14:50
  • @user535733 After fixing the 'unmet dependencies' error, the MOTD started to correctly show "0" instead of "444". As you helped a lot on solving the 'unmet dependencies' error, would you like to formally provide the answer to the original question here? – BsAxUbx5KoQDEpCAqSffwGy554PSah Feb 24 '23 at 12:43
  • Fee free to detail the solution. You can answer your own question. – user535733 Feb 24 '23 at 13:40

1 Answers1

0

The problem was that one update was stuck, giving this error:

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

After the unmet dependency was solved, apt upgrade resumed working, and MOTD automatically started to get updated with the correct number of available updates.