Comment 0 for bug 1842159

Revision history for this message
Balint Reczey (rbalint) wrote : Please suggest running apt update & apt upgrade in MOTD, list of available packages is old

When logging into a system where the package list is not updated for long time (for example because is offline) I may see:

...
0 updates can be installed immediately.
0 of these updates are security updates.
..

Which is true, but the user may think that there are no available updates released.

Also, if the /var/lib/update-notifier/updates-available is missing (which can happen due to network connectivity issues of due to bugs) there is no mention of updates in MOTD.

If the /var/lib/update-notifier/updates-available is older than a few days (weeks?) or it is missing and the packages list is older than a few days (weeks?) please recommend running apt update & upgrade in the MOTD snippet:

...
The list of available updates is not refreshed in N days.
Please run "sudo apt update" and then "sudo apt upgrade" to
keep your system up to date.
...