Snap can't install or list installed apps

Ubuntu Version:

24.04

Desktop Environment (if applicable):

GNOME

Problem Description:

I’m having issues with snap apps, they don’t work nor appear on my desktop.

This happened because it updated wrongly to the 6.17.0-14 kernel version, and trying to access to the previous version 6.14.0-37. I have issues with keyboard pressing keys on boot, and I ended powering off badly, leading to a disk corruption partially solved with fsck.

So I have missing files in snap app folders, trying to install them outputs that the app is installed:

snap install firefox
El snap "firefox" ya está instalado; consulte «snap help refresh»

Trying snap refresh shows this otrher issue:

snap refresh
error: cannot refresh: cannot prepare snap-declaration refresh for snap
       "firefox": snap-declaration (3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk;
       series:16) not found

listing the apps gives an error too:

snap list
error: cannot list local snaps! cannot find publisher details: snap-declaration
       (3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk; series:16) not found

And I’m seeing now I have a similar issue with flatpak

Relevant System Information:

GPU: NVIDIA GeForce GTX 1070
Drivers: nvidia-driver-580

Screenshots or Error Messages:

systemctl status snapd

● snapd.service - Snap Daemon
     Loaded: loaded (/usr/lib/systemd/system/snapd.service; enabled; preset: enabled)
     Active: active (running) since Tue 2026-02-10 00:40:12 CET; 7h ago
TriggeredBy: ● snapd.socket
   Main PID: 1496 (snapd)
      Tasks: 15 (limit: 18914)
     Memory: 56.0M (peak: 98.9M)
        CPU: 5.967s
     CGroup: /system.slice/snapd.service
             └─1496 /usr/lib/snapd/snapd

feb 10 08:13:11 santi-pc-orion snapd[1496]: snapmgr.go:630: cannot read snap info of snap "firefox" at revision 7766: cannot find installed snap "firefox" at revision 7766: missing file /snap/firefox/7766/meta/snap.yaml
feb 10 08:13:11 santi-pc-orion snapd[1496]: snapmgr.go:630: cannot read snap info of snap "firefox" at revision 7766: cannot find installed snap "firefox" at revision 7766: missing file /snap/firefox/7766/meta/snap.yaml
feb 10 08:13:11 santi-pc-orion snapd[1496]: snapmgr.go:630: cannot read snap info of snap "core20" at revision 2686: cannot find installed snap "core20" at revision 2686: missing file /snap/core20/2686/meta/snap.yaml
feb 10 08:13:11 santi-pc-orion snapd[1496]: snapmgr.go:630: cannot read snap info of snap "core20" at revision 2686: cannot find installed snap "core20" at revision 2686: missing file /snap/core20/2686/meta/snap.yaml
feb 10 08:13:11 santi-pc-orion snapd[1496]: snapmgr.go:630: cannot read snap info of snap "codium" at revision 495: cannot find installed snap "codium" at revision 495: missing file /snap/codium/495/meta/snap.yaml
feb 10 08:13:11 santi-pc-orion snapd[1496]: snapmgr.go:630: cannot read snap info of snap "codium" at revision 495: cannot find installed snap "codium" at revision 495: missing file /snap/codium/495/meta/snap.yaml
feb 10 08:13:11 santi-pc-orion snapd[1496]: storehelpers.go:916: cannot refresh: snap has no updates available: "bare", "chromium-ffmpeg", "codium", "core18", "core20", "core22", "core24", "firefox", "firmware-updater", "gnome-42-2204", "gnome-46-2404", "gtk-common-themes", "mesa-2404", "snap-store", "snapd", "snapd-desktop-integration", "thunderbird", "zerotier"
feb 10 08:23:05 santi-pc-orion snapd[1496]: snapmgr.go:630: cannot read snap info of snap "codium" at revision 495: cannot find installed snap "codium" at revision 495: missing file /snap/codium/495/meta/snap.yaml
feb 10 08:23:05 santi-pc-orion snapd[1496]: snapmgr.go:630: cannot read snap info of snap "firefox" at revision 7766: cannot find installed snap "firefox" at revision 7766: missing file /snap/firefox/7766/meta/snap.yaml
feb 10 08:25:38 santi-pc-orion snapd[1496]: api_snaps.go:536: Installing snap "codium" revision unset

```

What I’ve Tried:

I’ve tried removing and installing snap, but it didn’t change anything

If you are using Pro, it should update to 6.17.0-14. That’s the correct thing to do. It’s working perfectly on my system.

This is most likely the cause of the problem.

Question: How did you run fsck? Did you run it from a Live USB?

Let’s try fixing the problem. Please enter these commands in your terminal:

sudo apt --fix-broken install
sudo dpkg --configure --pending
sudo apt update
sudo apt upgrade

Then you can try:

sudo apt install –reinstall snap flatpak

You might have to restart.

Let me know if this helps.

1 Like

Hi, thanks for answering!!

I’m not using pro, but when I wrote wrongly, I meant that it didn’t install correctly, if i launch it it uses my secondary screen and I think it doesn’t recognize my graphics card.

If I enter dkms status in the terminal this is what it outputs:

sudo dkms status

nvidia/580.126.09, 6.14.0-37-generic, x86_64: installed
nvidia/580.126.09, 6.17.0-14-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)
xone/0.4.11, 6.14.0-37-generic, x86_64: installed
xone/0.4.11, 6.17.0-14-generic, x86_64: installed

Yes, file corruption is what I assume it caused this issue, the kernel error is just the reason why I was trying to boot so many times, and turned off the PC badly
(And the reason why I will probably do a fresh start with a backup of all my files and configs, because this isn’t the first time I had a big issue with an update)

In one of my boot tries the BusyBox shell popped up instead of Ubuntu. There, trying to exit it asked to do a manual fsck, and it ended saying that it fixed the issue and that I had some 1% of disk corruption. The next time I managed to boot was when I found that I had missing programs.

I have written them all and they didn’t look like it did anything except the reinstall, it even asked me to replace some common-* files in etc/pam.d. Just in case I made a copy of them before.
The other ones just got info online, and didn’t installed anything.

I’m going to restart to see if anything changed, I’ll report asap.

Edit: It doesn’t seem like anything has changed, snap commands give the same errors

Hmm, I’m stumped, sorry :frowning:

Let’s hope that someone else can chip in here.

Can you show us the output again of this command:

sudo snap refresh

Of course!

sudo snap refresh

error: cannot refresh: cannot prepare snap-declaration
       refresh for snap "chromium-ffmpeg": snap-declaration
       (XXzVIXswXKHqlUATPqGCj2w2l7BxosS8; series:16) not found

This time instead of Firefox it misses another app.

Likely because of the hard shutdown and perhaps an incomplete fsck, it seems likely your snap assertions got messed up (based on your previous output).

So, let’s try this to fix things:

sudo systemctl stop snapd

Then:

sudo rm -rf /var/lib/snapd/assertions/*
sudo rm -rf /var/lib/snapd/state.json

Finally,

sudo systemctl start snapd

Lastly,

sudo snap refresh

Check snap list to see if things are back to where you want them to be.

2 Likes

Well, it worked, partially, but it worked.

This was the list of programs it had before

And this is what returns with snap list


snap list
Nombre                     Versión                         Rev    Seguimiento      Editor      Notas
bare                       1.0                             5      latest/stable    canonical✓  base
core22                     20260113                        2292   latest/stable    canonical✓  base
firefox                    129.0.2-1                       4793   latest/stable/…  mozilla✓    -
firmware-updater           0+git.0052f6b                   210    1/stable/…       canonical✓  -
gnome-42-2204              0+git.c1d3d69-sdk0+git.015db9a  247    latest/stable/…  canonical✓  -
gtk-common-themes          0.1-81-g442e511                 1535   latest/stable/…  canonical✓  -
snap-store                 0+git.90575829                  1270   2/stable/…       canonical✓  -
snapd                      2.73                            25935  latest/stable    canonical✓  snapd
snapd-desktop-integration  0.9                             178    latest/stable/…  canonical✓  -
thunderbird                128.1.0esr-1                    507    latest/stable/…  canonical✓  -

Then I installed zerotier and codium, codium wasn’t installing by the snap application and in the terminal asked to set the tag --classic, but I think it shouldn’t be necessarily related.

And it didn’t loose it’s data, so it’s just like before.
I’m going to see if I can do the same or something similar to flatpak.

Thank you both very much <3

2 Likes

This topic was automatically closed 18 hours after the last reply. New replies are no longer allowed.