update-notifier can miscount updates when present in both -updates and -security
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: update-notifier
update-notifier can present confusing information to the user in the motd after miscounting the packages available for update in the case where a package may be updated from both the -updates and the -security repositories. An example fragment of motd output might be:
1 package can be updated.
2 updates are security updates.
In this case, the affected package has the following apt-cache policy:
ntpdate:
Installed: 1:4.2.4p4+
Candidate: 1:4.2.4p4+
Version table:
1:
500 http://
500 http://
*** 1:4.2.4p4+
500 http://
100 /var/lib/
I observed this on my machine today:
mathias:~ evan$ cat /etc/motd | tail -n 3
4 packages can be updated.
8 updates are security updates.
mathias:~ evan$ apt-cache policy libsasl2-2 dfsg1-23ubuntu3 dfsg1-23ubuntu3 .1 1.22.dfsg1- 23ubuntu3. 1 0 localhost jaunty-updates/main Packages localhost jaunty- security/ main Packages dfsg1-23ubuntu3 0 localhost jaunty/main Packages dpkg/status
libsasl2-2:
Installed: 2.1.22.
Candidate: 2.1.22.
Version table:
2.
500 http://
500 http://
*** 2.1.22.
500 http://
100 /var/lib/