Update-manager tray icon incorrectly complains about stale package information

Bug #243876 reported by Scott Severance
2
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Fix Released
Undecided
Michael Vogt

Bug Description

Update-manager sometimes pops up a tray icon complaining that I need to update (I haven't figured out how it decides when to complain). Update-manager itself displays the message, "The package information was last updated n days ago" where today n is 17. Actually, I've updated repeatedly today.

I've traced this to /usr/lib/python2.5/site-packages/UpdateManager/UpdateManager.py in the method _get_last_apt_get_update_text(). That function determines the last update by calling stat on /var/lib/apt/periodic/update-success-stamp. That file was last modified on 2008-06-11, even though I've updated successfully today (2008-06-29). This is a new machine, and the last modified date is approximately when I installed Ubuntu on it (I don't remember the exact date).

I don't know whether this is problem with update-manager, or with apt. I've tried updating both via update-manager and aptitude. That file simply doesn't get touched.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

Could you please give me the full terminal output of:
$ sudo apt-get update
$ echo $?
$ ls -l /var/lib/apt/periodic/

The way its implemented is that if one repository fails to update then the file is not touched. The output of the commands hopefully gives us a idea what goes wrong.

Thanks,
 Michael

Changed in update-manager:
assignee: nobody → mvo
status: New → Incomplete
Revision history for this message
Scott Severance (scott.severance) wrote :
Download full text (11.7 KiB)

Thanks for looking into this.

Unfortunately, there doesn't appear to be anything wrong now. When I was trying to track down this bug, I noticed that one of my repos was giving a 404 error, so I commented that repo out. Additionally, since I'd copied my sources.list from the old machine to the new one, some of the keys weren't installed. So, when I was troubleshooting this, I installed the keys, so that aptitude updated without any errors. Yet, after several updates, I was still experiencing the problem. That's when I reported this bug. Several days later, I noticed that update-manager had stopped complaining, and that /var/lib/apt/periodic/update-success-stamp had been touched.

One other thing that might or might not be relevant: I use apt-cacher on my network to save bandwidth. I don't know if it can cause these types of problems or not.

Here's the output you requested, which appears to be correct, now:

~:$ sudo apt-get update
Get:1 http://192.168.1.50 main Release.gpg [189B]
Ign http://192.168.1.50 main/editors Translation-en_US
Ign http://192.168.1.50 main/games Translation-en_US
Ign http://192.168.1.50 main/misc Translation-en_US
Ign http://192.168.1.50 main/networking Translation-en_US
Get:2 http://dl.google.com stable Release.gpg [189B]
Get:3 http://packages.medibuntu.org hardy Release.gpg [189B]
Ign http://192.168.1.50 main/scripts Translation-en_US
Get:4 http://192.168.1.50 main Release [11.2kB]
Get:5 http://192.168.1.50 main/editors Packages [4698B]
Get:6 http://192.168.1.50 main/editors Sources [957B]
Get:7 http://192.168.1.50 main/games Packages [3150B]
Get:8 http://192.168.1.50 main/games Sources [394B]
Get:9 http://192.168.1.50 main/misc Packages [12.3kB]
Get:10 http://192.168.1.50 main/misc Sources [1374B]
Get:11 http://192.168.1.50 main/networking Packages [1848B]
Get:12 http://192.168.1.50 main/networking Sources [14B]
Get:13 http://192.168.1.50 main/scripts Packages [1596B] ...

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for the additional information.

I added a better message into the notification area so that its clearer that a failed repository triggers the message too.

Changed in update-notifier:
status: Incomplete → Fix Committed
Revision history for this message
Scott Severance (scott.severance) wrote :

Wow. This is the fastest any bug I've reported has been fixed! Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-notifier - 0.71.1

---------------
update-notifier (0.71.1) intrepid; urgency=low

  * src/update.c:
    - make the "repository-outdated" nag message more clear
      and mention that unavailable repositores may cause the
      problem (LP: #243876)
  * data/apt-check:
    - fix incorrect display of number of updates (LP: #251494)

 -- Michael Vogt <email address hidden> Mon, 28 Jul 2008 14:32:47 +0200

Changed in update-notifier:
status: Fix Committed → 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.