wrong count in update-notifier tooltip

Bug #249957 reported by Philippe Saint-Pierre
4
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Note: I don't think this is the same as #28827, but I'm not totally sure.

I'm using Ubuntu 8.04.

I'm encountering a strange bug. Hovering the mouse over the update-notifier icon, the tooltip says (all the time, even after a reboot and "apt-get update" too) that there is 1 update available (with the security icon). However, when I click on it and open the update manager, it tells me I have 65 updates available (some security patches, recommended and proposed too)

My system is fully working, so it's definitely not a rush priority, I just noticed that this was wrong.

Mvo in #ubuntu-bugs helped me and he gave me a modified version of apt-check, to test things. Attached is the modified version he made.

Here is what this script returns when I run it :

[EDIT : typo]

stpere@stpere-desktop:~/intelisoft$ python ./apt-check.test2
Reading package lists... Done
Building dependency tree
Reading state information... Done
checking updates
is marked install or marked upgrade
1;1stpere@stpere-desktop:~/intelisoft$

And also this with the -p parameter :
danielle@danielle-desktop:~/intelisoft$ python ./apt-check.test2 -p
Reading package lists... Done
Building dependency tree
Reading state information... Done
checking updates
is marked install or marked upgrade
linux-headers-2.6.24-19-generic
evolution-common
xserver-xorg-video-amd
language-support-writing-en
guidance-backends
nvidia-glx-dev
gnome-games
evolution-exchange
evolution
libexchange-storage1.2-3
gnome-cards-data
rhythmbox
xulrunner-1.9
liblircclient0
xserver-xorg-video-nsc
libcamel1.2-11
libwnck-common
python-apt
libnspr4-0d
mysql-common
libedata-cal1.2-6
libmysqlclient15-dev
linux-libc-dev
libgweather1
gtkhtml3.14
linux-restricted-modules-2.6.24-19-generic
libmysqlclient15off
xkb-data
libwnck22
linux-image-2.6.24-19-generic
python-launchpad-bugs
gtk2-engines
eog
gdm
libegroupwise1.2-13
ttf-opensymbol
libgweather-common
libecal1.2-7
linux-restricted-modules-common
libgdata1.2-1
gnome-system-monitor
gnome-games-data
libgdata-google1.2-1
libebook1.2-9
evolution-plugins
libedataserverui1.2-8
libedata-book1.2-2
evolution-data-server
libedataserver1.2-9
libpq-dev
libglib2.0-0
xserver-xorg-video-geode
libpq5
xulrunner-1.9-gnome-support
openoffice.org-help-en-gb
deskbar-applet
evolution-data-server-common
openoffice.org-help-en-us
libgnome-desktop-2
linux-headers-2.6.24-19
libnss3-1d
nvidia-glx
libgtkhtml3.14-19
xserver-xorg-video-intel
python-gobject

Tags: precise
Revision history for this message
Philippe Saint-Pierre (stpere) wrote :
description: updated
Revision history for this message
Philippe Saint-Pierre (stpere) wrote :

Fixed! I found the solution!

In the counting loop, there was a "break" where should have been a "continue" (line 112)

Here is my modified version. Sorry, it's not a diff file (I overwrote the original already..) but a complete file.

Revision history for this message
Mehdi Hassanpour (mehdi) wrote :

I can confirm this bug too...

Revision history for this message
Mehdi Hassanpour (mehdi) wrote :
Changed in update-notifier:
status: New → Confirmed
LaserJock (laserjock)
Changed in update-notifier:
importance: Undecided → Wishlist
status: Confirmed → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote :

Attached is properly formatted diff for this fix.

dino99 (9d9)
tags: added: precise
Revision history for this message
dg1727 (dg1727) wrote :

The suggested patch seems to have been applied to /usr/lib/update-notifier/apt-check as of Ubuntu 13.04 Raring. (The affected line of that file now seems to be line 136.)

Mörgæs (moergaes)
Changed in update-notifier (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.