snap question
Keith
keith at caramail.com
Sat Nov 19 19:32:46 UTC 2022
On 11/19/22 11:50 AM, Jay Ridgley wrote:
> Good morning,
>
> There have been several times that a pop-up message has announced that a
> snap update is pending for Netscape.
>
> When I have done a refresh I am informed that all snaps are up to date.
> can any one enlighten me, as to why this happens?
>
> jay at polar:~$ sudo snap refresh
> [sudo] password for jay: xxxxxxx
> All snaps up to date.
> jay at polar:~$
>
> Description: Ubuntu 22.04.1 LTS
> Release: 22.04
> Codename: jammy
>
Wild-ass-guess ahead
I assume its because whatever clients (like the Ubuntu Software store)
of the snapd system daemon don't immediately get notified of a change to
an updated snap's refresh status. Either snapd doesn't immediately push
notification when a change is initiated from the command-line interface
(snap command), or the client only polls snapd periodically for changes.
If a refresh occurs between polling intervals of a client, then the
client assumes that there is still a refresh update pending. Only until
it gets an update from the snapd daemon will it change it's reporting of
the updated snap's status from pending to completed. It gets that update
from polling or through an user-initiated forced update of the refresh
list (the recycle button appearing in the left-hand corner of the
Updates page in Ubuntu software).
The status of refreshes made through Ubuntu Software (client) seem to be
immediately updated, though. For example, before I disabled pop-ups
notification for snapd-user-session-agent if I received a pending update
notification banner pop-up for firefox, I would close Firefox, open
Ubuntu Software, click on the Updates tab, and then click Update for
Firefox, wait for the snap refresh to complete, and then re-open
Firefox. After that, I didn't get any more pop-ups. Dropping to the
command-line and issuing "snap refresh --list" would show the all snaps
up to date message. At least that's been my experience, YMMV.
--
Keith
More information about the ubuntu-users
mailing list