By design and by default, snapd won't let you update a snap that has
running apps, because it might result in crashes or unpredictable
behaviours.
Your best bet is to actually ensure firefox is not running before
refreshing it.
Alternatively, if you are an administrator on that machine, you could
try to turn off that default setting (but even that might require
restarting the firefox snap before it actually allows you refreshing
while the app is running):
snap set core experimental.refresh-app-awareness=false
As I noted above, this might result in unpredictable behaviour of the
running apps that are being refreshed, so use at your own risk, that's
not a setting that I would recommend unless you really know what you're
doing.
** Changed in: firefox (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1985066
Title:
cannot refresh snap "firefox": snap "firefox" has running apps
(firefox)
Status in firefox package in Ubuntu:
Invalid
Bug description:
Firefox installed via 22.04 snap does not seem to update properly.
There is a log line (or error printout on manual execution), but it
does not really point me to the actual bug. I already know firefox is
running for some other user - that machine is never up and not running
firefox - but I do not see how that matters.
# snap list firefox
Name Version Rev Tracking Publisher Notes
firefox 103.0.1-1 1635 latest/stable mozillaâś“ -
# snap info firefox | grep latest/stable
tracking: latest/stable
latest/stable: 103.0.2-1 2022-08-09 (1670) 171MB -
# sudo snap refresh firefox
error: cannot refresh "firefox": snap "firefox" has running apps (firefox),
pids:
19113,19246,19268,19361,19524,19529,19588,19874,20047,20075,20105,20127
# firefox --version
Mozilla Firefox 103.0.1
(expected: 103.0.2)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1985066/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp