So a working variant which reexecs into the snapd snap:

> And here is result of run if snapd_2.63+24.04ubuntu0.1_amd64.deb
> is installed:
> 
> SNAPD_DEBUG=1 snap run hello
> 2025/10/10 15:10:57.893348 logger.go:93: DEBUG: restarting into 
> "/snap/snapd/current/usr/bin/snap"
>...
> DEBUG: initial caps: 
> cap_chown,cap_dac_override,cap_dac_read_search,cap_fowner,cap_setgid,cap_setuid,cap_sys_chroot,cap_sys_ptrace,cap_sys_admin,cap_sys_resource,cap_bpf=ep

and a variant that uses a local deb but fails:

> SNAPD_DEBUG=1 snap run hello
> 2025/10/10 15:03:56.347403 tool_linux.go:94: DEBUG: snap (at 
> "/snap/snapd/current") is older ("2.71") than distribution package 
> ("2.71.1+ubuntu25.10.1")
> ...
> DEBUG: initial caps: 
> cap_chown,cap_dac_override,cap_dac_read_search,cap_setgid,cap_setuid,cap_net_admin,cap_sys_chroot,cap_sys_ptrace,cap_sys_admin,cap_sys_resource,cap_perfmon,cap_bpf=ep
cannot set capabilities: Operation not permitted

And a log from my VM:

> root@u3:~# SNAPD_DEBUG=1 snap run hello
> 2025/10/10 11:57:20.569494 tool_linux.go:94: DEBUG: snap (at 
> "/snap/snapd/current") is older ("2.71") than distribution package 
> ("2.71.1+ubuntu25.10.1")
> ...
> DEBUG: initial caps: 
> cap_chown,cap_dac_override,cap_dac_read_search,cap_fowner,cap_setgid,cap_setuid,cap_sys_chroot,cap_sys_ptrace,cap_sys_admin,cap_sys_resource,cap_bpf=ep


Why cap_fowner is missing in your scenario with the deb?

And why do you have cap_perfrmon?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2127224

Title:
  all snaps fail to run

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2127224/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to