Error: cannot list local snaps! cannot find publisher details: snap-declaration

Current version of OS, along with errors.

(base) [pkg@wrapper ~]$ lsb_release -a
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:        21.2.1
Codename:       Qonos


(base) [pkg@wrapper ~]$ snap version 
snap     2.54.1-1-dirty
snapd    2.53.4-1-dirty
series   16
manjaro  -
kernel   5.10.84-1-MANJARO


(base) [pkg@wrapper ~]$ snap list 
error: cannot list local snaps! cannot find publisher details: snap-declaration
       (EISPgh06mRh1vordZY9OZ34QHdd7OrdR; series:16) not found

       
(base) [pkg@wrapper ~]$ snap install subsync
error: too early for operation, device not yet seeded or device model not acknowledged


(base) [pkg@wrapper ~]$ journalctl -u snapd --full --no-pager | tail -n 50
Jan 04 12:05:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Jan 04 12:05:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Jan 04 12:05:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Jan 04 12:05:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key
Jan 04 12:10:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key
Jan 04 12:10:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Jan 04 12:10:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Jan 04 12:10:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Jan 04 12:10:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Jan 04 12:10:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Jan 04 12:10:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Jan 04 12:10:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key
Jan 04 12:15:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key
Jan 04 12:15:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Jan 04 12:15:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Jan 04 12:15:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Jan 04 12:15:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Jan 04 12:15:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Jan 04 12:15:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Jan 04 12:15:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key
Jan 04 12:20:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key
Jan 04 12:20:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Jan 04 12:20:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Jan 04 12:20:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Jan 04 12:20:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Jan 04 12:20:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Jan 04 12:20:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Jan 04 12:20:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key
Jan 04 12:22:08 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Jan 04 12:22:08 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Jan 04 12:22:08 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Jan 04 12:22:08 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Jan 04 12:22:08 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Jan 04 12:22:08 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Jan 04 12:23:48 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Jan 04 12:23:48 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Jan 04 12:23:48 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Jan 04 12:23:48 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Jan 04 12:23:48 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Jan 04 12:23:48 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Jan 04 12:24:01 wrapper snapd[428]: api_snaps.go:307: Installing snap "code" revision unset
Jan 04 12:24:19 wrapper snapd[428]: api_snaps.go:307: Installing snap "subsync" revision unset
Jan 04 12:25:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key



(base) [pkg@wrapper ~]$ systemctl status snapd.service 
● snapd.service - Snap Daemon
     Loaded: loaded (/usr/lib/systemd/system/snapd.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2022-01-04 16:35:17 IST; 4h 8min left
TriggeredBy: ● snapd.socket
   Main PID: 428 (snapd)
      Tasks: 11 (limit: 14050)
     Memory: 29.3M
        CPU: 852ms
     CGroup: /system.slice/snapd.service
             └─428 /usr/lib/snapd/snapd

Jan 04 12:24:01 wrapper snapd[428]: api_snaps.go:307: Installing snap "code" revision unset
Jan 04 12:24:19 wrapper snapd[428]: api_snaps.go:307: Installing snap "subsync" revision unset
Jan 04 12:25:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Jan 04 12:25:16 wrapper snapd[428]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes>
Jan 04 12:25:16 wrapper snapd[428]: stateengine.go:149: state ensure error: no state entry for key

I had a perfectly working version of snap and for some reason wanted to remove and reinstall. So followed the guide over at manjaro wiki and ran the following commands.

pamac remove snapd 

sudo rm -r /var/lib/snapd 

Now, when I wanted to reinstall it, again followed the commands from the wiki linked above and ran -

pamac install snapd libpamac-snap-plugin 
sudo systemctl enable --now snapd.socket 
ln -s /var/lib/snapd/snap /snap 
pamac install discover-snap 

after which restarted the laptop to be sure and ended up in the above state. I tried following through the existing topics from other users that seem to have the same issue and it did not seem to work for me.

Does anyone have ideas on how to resolve this? Let me know if more information is needed.

PS - I also posted the same question over at the snap forums (its still open and has not been responded - Holiday’s I think :slight_smile: ).

Edit - Removed hyperlinks to Manjaro wiki and snapcraft forums (its essentially the same post as here) since the message board was complaining (its because I’m a new user - I think)

You are in a partial-upgrade state as evidenced by your kernel.
(which means unsupported/broken)

Perform a full update.

I think that one might have been a false flag, I’d updated the system and posted the question, rebooted now and I think I’m already up to date (see below), unless I’m supposed to do something outside of this?

(base) [pkg@wrapper ~]$ sudo pacman -Syyu
[sudo] password for pkg: 
:: Synchronizing package databases...
 core                                                                                                             169.4 KiB  59.2 KiB/s 00:03 [#######################################################################################] 100%
 extra                                                                                                           1916.4 KiB   605 KiB/s 00:03 [#######################################################################################] 100%
 community                                                                                                          6.8 MiB  1493 KiB/s 00:05 [#######################################################################################] 100%
 multilib                                                                                                         178.2 KiB   284 KiB/s 00:01 [#######################################################################################] 100%
:: Starting full system upgrade...
warning: manjaro-hello: local (0.6.7-2) is newer than extra (0.6.6-11)
 there is nothing to do
(base) [pkg@wrapper ~]$ 
(base) [pkg@wrapper ~]$ snap version 
snap     2.54.1-1-dirty
snapd    2.54.1-1-dirty
series   16
manjaro  -
kernel   5.10.89-1-MANJARO
(base) [pkg@wrapper ~]$ 
(base) [pkg@wrapper ~]$ 
(base) [pkg@wrapper ~]$ uname -a
Linux wrapper 5.10.89-1-MANJARO #1 SMP PREEMPT Wed Dec 29 18:09:17 UTC 2021 x86_64 GNU/Linux
(base) [pkg@wrapper ~]$ 
(base) [pkg@wrapper ~]$ 


Edit1 - The issue existed before the upgrade and does now after upgrade and reboot.

try this:

sudo systemctl disable snapd.socket
pamac remove --no-save snapd 
sudo rm -r /var/lib/snapd
**reboot**
sudo pacman -S snapd
sudo systemctl enable --now snapd.socket
1 Like

Brilliant, that indeed is the solution. I’m able to install snaps. Before I close this out, would you (or anyone) happen to know what I need to do to make the installed snaps show up in KDE application menu?

Well it was…
Manjaro - Branch Compare

But I guess its lined up now




Assuming the SNAP provides a .desktop file or whatever … Reboot should do it.
https://wiki.archlinux.org/title/Snap#Installation

1 Like

Thanks for the nudge.

Snap stores .desktop files in /var/lib/snapd/desktop/applications/ and KDE stores Global launch files in /usr/share/applications/ and personal application files in /home/$USER/.local/share/applications/.

I did the following and can get current and future installed snaps to show in launcher.

sudo ln -s /var/lib/snapd/desktop/applications/*.desktop  /usr/share/applications/

Thanks both for your help, appreciate it.

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