Ubuntu 22.04 chromium snap broken

Ubuntu Version: 22.04 LTS

Desktop Environment (if applicable): GNOME

Problem Description:
Chromium browser disappeared from system. Snapd reports the snap is broken.

Relevant System Information:
Last used the morning (EDT) of Monday, May 26.

Screenshots or Error Messages:
From snap list:

chromium                   -                               3137   latest/stable    canonical✓     broken

What I’ve Tried:

$ sudo snap refresh
error: cannot refresh: cannot find installed snap "chromium" at revision 3137:
       missing file /snap/chromium/3137/meta/snap.yaml
$ snap remove chromium; snap install chromium
error: cannot perform the following tasks:
- Save data of snap "chromium" in automatic snapshot set #3 (sync /var/lib/snapd/snapshots/3_chromium__3137.zip.hBSLF9HWWlV7~: input/output error)
snap "chromium" is already installed, see 'snap help refresh'

Curt

Have you looked at /snap/chromium yet ? This is where the .snap file should get mounted under its respectively versioned mount point…

Also snap changes (and for details snap change <ID>) and snap warnings might be interesting…

Did you change the kernel to something unsupported or is your disk full (or read only due to filesystem errors) by any chance ? These two could also cause a snap breakage.

From your output:

Snapd is not “reporting the snap is broken”.
Snapd is telling you it encountered an unrecoverable fault while trying to communicate with your storage device.

1 Like

I am still a bit of a newb regarding snaps, so thanks for the pointer

/snap/chromium/current → 3137/

However, the 3137 directory is empty, while the 3125 directory is not:

$ ll /snap/chromium/current/
total 0
drwxr-xr-x 1 root root  0 May 26 08:17 ./
drwxr-xr-x 1 root root 30 May 26 08:19 ../

Looks like 3137 was “installed” after I had launched chromium the morning of May 26.

No snap warnings and snap changes only reported the failed removal attempt from today.

1 Like

sudo snap revert chromium has restored a working chromium browser to my system.

2 Likes

Glad to hear you managed to sort this out.

Please mark this topic with a solution to help others.

For future reference, you can find a very handy list of snap commands here:

Interestingly, snap list is still showing rev 3125 as latest/stable and sudo snap refresh reports all snaps up to date. So what happened to this failed rev 3137 whose directory is now partially populated, but has obviously fewer files than the 3125 directory?