Bug 1371032 - Repeated "A new version of Fedora is available to install" notifications
Summary: Repeated "A new version of Fedora is available to install" notifications
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-software
Version: 26
Hardware: i686
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-29 08:30 UTC by Peter Oliver
Modified: 2018-05-04 12:04 UTC (History)
5 users (show)

Fixed In Version: gnome-software-3.28.1-1.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-04 12:04:59 UTC
Type: Bug


Attachments (Terms of Use)

Description Peter Oliver 2016-08-29 08:30:36 UTC
Since the release of Fedora 24, each time I log in, I receive the notification, "A new version of Fedora is available to install".  I do not intend to upgrade this computer until the release of Fedora 25, so do not wish to receive daily reminders that Fedora 24 is available.

Comment 1 Fedora End Of Life 2016-11-25 09:32:12 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Joachim Frieben 2017-01-09 16:22:48 UTC
It would be great to have an option to disable this notification, either in some preferences' menu or with a checkbox in the notification window.

Comment 3 Joachim Frieben 2017-07-17 19:19:27 UTC
The same issue applies to Fedora 25 now; fairly annoying .. .

Comment 4 Fedora End Of Life 2017-07-25 22:43:18 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 5 Fedora End Of Life 2017-11-16 19:16:00 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 6 fedora-mate-testing 2017-11-17 15:42:01 UTC
I can confirm having the issue on Fedora 26. The release of Fedora 28 is scheduled at 2018-04-17 according to https://fedoraproject.org/wiki/Releases/28/Schedule so the above notice does not apply.

Is there a workaround?

Thank you.

Comment 7 Jargon Scott 2017-11-19 23:50:41 UTC
I confirm that I have the same problem on Fedora 26: every day upon powering up my Fedora 26 workstation and logging in, the "new version of Fedora" notification appears.

The following workaround is confirmed to suppress this notification:

--------

gsettings set org.gnome.software upgrade-notification-timestamp $(date -d +10year +%s)

--------

I *believe* this is a bug whose root cause is exposed in line 209 of gnome-software/src/gs-update-monitor.c (see below).

The function should_show_upgrade_notification checks an upgrade-notification-timestamp setting for the time of the last "new version" notification; it's trying not to show a notification more than once a month.

But on each of my Fedora 26 systems, the value of this setting-- even immediately after a notification appears-- is always "0" (as shown by "gsettings get org.gnome.software upgrade-notification-timestamp").

The workaround offered above manually set this timestamp 10 years in the future.

For what it's worth, grepping for this "upgrade-notification-timestamp" setting through the source of gnome-software only finds this value being *checked*, not being set.  (Could this be the problem?) 

$ grep -FHIrni upgrade-notification-timestamp .
./src/gs-update-monitor.c:209:	g_settings_get (monitor->settings, "upgrade-notification-timestamp", "x", &tmp);
./data/org.gnome.software.gschema.xml:54:    <key name="upgrade-notification-timestamp" type="x">
$ 

$ nl -ba src/gs-update-monitor.c | sed -n 201,224p
   201	static gboolean
   202	should_show_upgrade_notification (GsUpdateMonitor *monitor)
   203	{
   204		GTimeSpan d;
   205		gint64 tmp;
   206		g_autoptr(GDateTime) now = NULL;
   207		g_autoptr(GDateTime) then = NULL;
   208	
   209		g_settings_get (monitor->settings, "upgrade-notification-timestamp", "x", &tmp);
   210		if (tmp == 0)
   211			return TRUE;
   212		then = g_date_time_new_from_unix_local (tmp);
   213		if (then == NULL) {
   214			g_warning ("failed to parse timestamp %" G_GINT64_FORMAT, tmp);
   215			return TRUE;
   216		}
   217	
   218		now = g_date_time_new_now_local ();
   219		d = g_date_time_difference (now, then);
   220		if (d >= 30 * G_TIME_SPAN_DAY)
   221			return TRUE;
   222	
   223		return FALSE;
   224	}

Comment 8 Fedora End Of Life 2018-05-03 09:06:38 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 9 Jargon Scott 2018-05-04 12:00:51 UTC
Confirmed: this bug still exists in Fedora 27.  Please update the version of this bug lest it be closed.

Note that the workaround described in comment #7 still works, and that the same root cause is suspected: gnome-software is checking a "time of last notification" value to avoid displaying this message too frequently, but it appears not to be *setting* this value.  gnome-software always acts as if this message has never been shown.

Steps to duplicate this bug:

1. Waited until Fedora 28 had been released.

2. Performed a new installation of Fedora 27 using the media "Fedora-Workstation-Live-x86_64-27-1.6.iso".

3. Logged into the desktop and confirmed that the message "A new version of Fedora is available to install" appeared.

4. Rebooted the machine and immediately logged into the desktop again.

5. Confirmed that the same "new version available" message appeared, even though only a few minutes had passed since the last time it had appeared.

Comment 10 Kalev Lember 2018-05-04 12:04:59 UTC
This should be fixed in gnome-software 3.28 that's available in Fedora 27 updates repository.


Note You need to log in before you can comment on or make changes to this bug.