Update available for Firefox - Snap Refresh Required on Ubuntu

Posted by ads on Thursday, 2024-08-08
Posted in [Software]

If you are running Ubuntu and using the Firefox browser, you may have seen a notification indicating that an update is available for “firefox”.

Here’s what this means and how to address it.

Ubuntu Snap notification: Update available for firefox
Ubuntu Snap notification: Update available for firefox

The Ubuntu Linux distribution is based on Debian, but got it’s own package format for third-party applications. It’s called Snap.

What is Snap

The application runs inside a virtual container, with limited and gated access to the host resources. The container package also brings most of it’s required dependencies, making it easier for developers to provide a software package without the need to support many different host system versions.

Occasionally this causes it’s own set of problems.

The Snap container format is developed by Canonical, and as of now only used on Ubuntu. Some other distributions support installing Snap packages, but it’s not their target platform. Other common container formats for applications are Flatpak and AppImage, which both are supported on a wider range of distributions.

When does the notification appear

Snap checks daily for new updates, but doesn’t install them right away. The update requires an application restart, and in doing so, this will kill the application.

The notification will nag for a couple of days, claiming that eventually the application will force restarted.

How to update the application

There are two ways: command line, and the Ubuntu Software Center (package ubuntu-software under Gnome). In addition, when you close the application (here: Firefox) it will automatically be updated.

Ubuntu Snap notification: firefox was updated
Ubuntu Snap notification: firefox was updated

When using the commandline, it is required to run the program as root, using sudo:

1
2
$ sudo snap refresh
firefox 127.0.2-1 from Mozilla✓ refreshed

Here the firefox application (the package name is written in lower case) was updated, and then restarted.

Show available updates

By running snap refresh with the --list option, no update is installed. Instead the list of available updates is shown:

1
2
3
$ sudo snap refresh --list
Name     Version  Rev   Size   Publisher  Notes
firefox  129.0-2  4698  282MB  mozilla✓   -

Let’s see what will be updated:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$ sudo snap info firefox
name:      firefox
summary:   Mozilla Firefox web browser
publisher: Mozilla✓
store-url: https://snapcraft.io/firefox
contact:   https://support.mozilla.org/kb/file-bug-report-or-feature-request-mozilla
license:   unset
description: |
  Firefox is a powerful, extensible web browser with support for modern web application
  technologies.
commands:
  - firefox
  - firefox.geckodriver
snap-id:      3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk
tracking:     latest/stable
refresh-date: 16 days ago, at 23:53 CEST
channels:
  latest/stable:    128.0-2       2024-07-09 (4539) 280MB -
  latest/candidate: 128.0-2       2024-07-04 (4539) 280MB -
  latest/beta:      129.0b2-1     2024-07-10 (4573) 283MB -
  latest/edge:      130.0a1       2024-07-12 (4581) 301MB -
  esr/stable:       115.13.0esr-3 2024-07-09 (4532) 256MB -
  esr/candidate:    115.13.0esr-3 2024-07-04 (4532) 256MB -
  esr/beta:         ↑
  esr/edge:         ↑
installed:          127.0.2-1                (4483) 281MB -

Run the update:

1
2
$ sudo snap refresh
firefox 129.0-2 from Mozilla✓ refreshed

Check again:

1
2
$ sudo snap refresh --list
All snaps up to date.

And see a list of all installed Snap packages:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
$ sudo snap list
Name               Version          Rev    Tracking         Publisher   Notes
bare               1.0              5      latest/stable    canonical✓  base
core18             20240612         2829   latest/stable    canonical✓  base
core20             20240416         2318   latest/stable    canonical✓  base
core22             20240419         1439   latest/stable    canonical✓  base
firefox            129.0-2          4698   latest/stable/…  mozilla✓    -
gnome-3-38-2004    0+git.efb213a    143    latest/stable/…  canonical✓  -
gnome-42-2204      0+git.510a601    176    latest/stable    canonical✓  -
gtk-common-themes  0.1-81-g442e511  1535   latest/stable/…  canonical✓  -
snapd              2.63             21759  latest/stable    canonical✓  snapd

Summary

The Ubuntu Snap upgrade is nagging to restart applications. One has to either close the application, or run snap refresh.


Categories: [Software]

Comments

With an account on the Fediverse or Mastodon, you can respond to this post. Known replies are displayed below:



Note: This will load data from mastodon.social.

Learn how this is implemented here.


Share: