[SOLVED] I think I broke something

Solution: Problem sat on chair… I created my snap folder with wrong mod | ownership:

Was:    700 | private_user:private group
Should: 755 | root:root

I am an ubuntu 22.04 user (just for the context)

Today I wanted to move /snap on a dedicated partition, because my / will soon be full and I still have to instaĺl some snaps.

This was my way of doing: I stopped all snap apps and services (I checked with ps aux | grep snap). At the end only the daemons were running (but did know how to stop, it might have been my failure):

  • /usr/lib/snapd/snapd
  • /usr/bin/snap userd

Then:

# I moved /snap to /snap-old:
$ sudo mv /snap /snap-old

# I created /snap and mounted (also in fstab).
$ sudo mkdir /snap

# I copied all data
$ sudo cp -r /snap-old/* /snap/

# I verified the mount was OK (after restart):
$ mount | grep 'on /snap '
/dev/nvme1n1p4 on /snap type ext4 (rw,relatime,errors=remount-ro)

Then: When I started app firefox every thing seemed ok, until I wanted to refresh firefox (1 minor Version)

# I launch refresh (only Firefox needs it)
$ sudo snap refresh
error: cannot perform the following tasks:
- Run post-refresh hook of "firefox" snap if present (run hook "post-refresh": cannot snap-exec: open /snap/firefox/3026/meta/snap.yaml: permission denied)

And the Firefox has not been updated.

Did I broke something?