*** This bug is a duplicate of bug 454941 ***
https://bugs.launchpad.net/bugs/454941
I've noticed the 'update-success-stamp' time being updated at two times
during the day:
1) After '/etc/cron.daily/apt' runs (between 4:30 and 5pm on my system). At
this time the timestamp matches that of '/var/lib/apt/periodic/update-stamp.
2) Early in the morning, about 12 hours later, and it seems to be triggered by
packagekit, which is configured to check for updates once a day and to only
install security updates (see 'gpk-prefs'). I will check to see if turning off
the packagekit updates stops the additional update checks from running.
Evidence of past update-notifier/apt/packagekit activity is in the output of
'lastcomm | grep apt-check' (also, look for packagekitd finishing after the
apt-check'). Another way to see what is happening in rael time is to add the
'--debug updates' and '--debug inotify' flags to update-notifier
The methodology of update-notifier (and packagekit) regarding the
security updates seems to be to try and run when the system is 'idle',
and there are a lot of notations in the update-notifiier source. The
cause of getting notifications even though the system is up to date is
due to the 'update-success-stamp' being more than 7 days old. See
u-n/src/update.c function 'outdated_nag', which is called from function
'update_check()':
static gboolean
outdated_nag(TrayApplet *ta)
{
struct stat buf;
if ((stat("/var/lib/apt/periodic/update-success-stamp", &buf) == 0) &&
(time(NULL) - buf.st_mtime > OUTDATED_NAG_AGE) ) {
gtk_status_icon_set_visible (ta->tray_icon, TRUE);
ta->name = "gtk-dialog-warning-panel";
GdkPixbuf *src = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(),
ta->name, 48,
GTK_ICON_LOOKUP_GENERIC_FALLBACK,
NULL);
gtk_status_icon_set_from_pixbuf(ta->tray_icon, src);
g_object_unref(src);
gtk_status_icon_set_tooltip(ta->tray_icon,
_("The update information is outdated. "
"This may be caused by network "
"problems or by a repository that "
"is no longer available. "
"Please update manually "
"by clicking on this icon and then "
"selecting 'Check for updates' and "
"check if some of the listed "
"repositories fail."
));
}
return FALSE;
}
I think if '/var/lib/apt/periodic/update-success-stamp' is touched to bring it
up to date (i.e. less than 7 days old) the nag message goes away.
If '/etc/cron.daily/15update-stamp' is changed to not reference
'/var/lib/apt/update-success-stamp' that would break some checks in
update-notifier/
See the aforementioned 'update-c' and 'update-notifier.c'.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/918656
Title:
Getting update notifications although up-to-date via aptitude
To manage notifications about this bug go to:
https://bugs.launchpad.net/aptitude/+bug/918656/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs