root@ee-motd-verify:~# update-motd 
Welcome to Ubuntu 19.10 (GNU/Linux 5.0.0-37-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Dec 16 14:12:40 UTC 2019

  System load:    0.95      Processes:           28
  Usage of /home: unknown   Users logged in:     0
  Memory usage:   0%        IP address for eth0: 10.84.73.58
  Swap usage:     38%

28 updates can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable


root@ee-motd-verify:~# touch -t 01010101 
/var/lib/update-notifier/updates-available
root@ee-motd-verify:~# update-motd
Welcome to Ubuntu 19.10 (GNU/Linux 5.0.0-37-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Dec 16 14:13:01 UTC 2019

  System load:    0.9       Processes:           28
  Usage of /home: unknown   Users logged in:     0
  Memory usage:   0%        IP address for eth0: 10.84.73.58
  Swap usage:     38%


28 updates can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable


The list of available updates is more than a week old.
To check for new updates run: sudo apt update

root@ee-motd-verify:~# rm /var/lib/update-notifier/updates-available
root@ee-motd-verify:~# update-motd 
Welcome to Ubuntu 19.10 (GNU/Linux 5.0.0-37-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Dec 16 14:13:15 UTC 2019

  System load:    1.0       Processes:           28
  Usage of /home: unknown   Users logged in:     0
  Memory usage:   0%        IP address for eth0: 10.84.73.58
  Swap usage:     38%


The list of available updates is more than a week old.
To check for new updates run: sudo apt update

root@ee-motd-verify:~# apt update -qq
28 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@ee-motd-verify:~# update-motd 
Welcome to Ubuntu 19.10 (GNU/Linux 5.0.0-37-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Dec 16 14:13:28 UTC 2019

  System load:    0.78      Processes:           28
  Usage of /home: unknown   Users logged in:     0
  Memory usage:   0%        IP address for eth0: 10.84.73.58
  Swap usage:     38%


28 updates can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable


root@ee-motd-verify:~# dpkg -l update-notifier-common | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                   Version      Architecture Description
+++-======================-============-============-=======================================================
ii  update-notifier-common 3.192.26.1   all          Files shared between 
update-notifier and other packages


** Tags removed: verification-needed verification-needed-eoan
** Tags added: verification-done verification-done-eoan

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842159

Title:
  Please suggest running apt update & apt upgrade in MOTD  when list of
  available packages is old

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1842159/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to