Please suggest running apt update & apt upgrade in MOTD when list of available packages is old
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
New
|
Undecided
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned | ||
Disco |
Won't Fix
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Users don't have up to date information about available updates when network connectivity or other issues prevented automated apt updates.
* It is desired to give the user accurate and up to date information about available updates or warn them if the information is outdated.
* The fix notifies user about stale updates information in MOTD
[Test Case]
* Install update-motd and the the fixed package.
* Observe the output of sudo update-motd printing the usual output
* "Date back" the updates information:
$ sudo touch -t 01010101 /var/lib/
* Observe the output of sudo update-motd printing warning about outdated update information.
* Remove the updates information:
$ sudo rm /var/lib/
* Observe the output of sudo update-motd printing warning about outdated update information.
[Regression Potential]
* An error may be printed in MOTD or the warning message may appear needlessly in case of making a mistake in implementing the fix.
[Original Bug Text]
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/
If the /var/lib/
...
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.
...
Related branches
- Julian Andres Klode: Needs Fixing
- Matthew Paul Thomas: Pending requested
-
Diff: 84 lines (+30/-1)6 files modifieddata/Makefile.am (+1/-1)
data/notify-updates-outdated (+19/-0)
debian/90-updates-available (+2/-0)
debian/changelog (+6/-0)
debian/update-notifier-common.install (+1/-0)
po/POTFILES.in (+1/-0)
summary: |
- Please suggest running apt update & apt upgrade in MOTD, list of + Please suggest running apt update & apt upgrade in MOTD when list of available packages is old |
tags: | added: id-5ca609ba6cd52782e994a6e1 |
description: | updated |
tags: | added: id-5d78fc6cca6d1b77a77952cc |
tags: | added: wsl |
Changed in update-notifier (Ubuntu Disco): | |
status: | New → Won't Fix |
It seems the update counts generally may not be populated correctly on initial login.
Under 19.04 I'm currently seeing these counts on initial login...
52 updates can be installed immediately.
0 of these updates are security updates.
...but then immediately after login...
sudo cat /var/lib/ update- notifier/ updates- available
66 updates can be installed immediately.
8 of these updates are security updates.