Every snap I am trying to run after upgrading to Ubuntu 24.04 (from 23.10) hangs forever. Using strace I can see that it tries to open nonexistent bpf file:
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0x7ffeed7ced50) = 0
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0x7ffeed7ced50) = 0
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0x7ffeed7ced50) = 0
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0x7ffeed7ced50) = 0
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0x7ffeed7ced50) = 0
access("/var/lib/snapd/seccomp/bpf//snap.hello-world.hello-world.bin2", F_OK) = -1 ENOENT (No such file or directory)
The contents of /var/lib/snapd/seccomp/bpf:
global.bin snap.firefox.hook.configure.bin snap.firefox.hook.post-refresh.src snap.hello-world.sh.bin
snap.core.hook.configure.bin snap.firefox.hook.configure.src snap.hello-world.env.bin snap.hello-world.sh.src
snap.core.hook.configure.src snap.firefox.hook.connect-plug-host-hunspell.bin snap.hello-world.env.src snap.ripgrep.rg.bin
snap.firefox.firefox.bin snap.firefox.hook.connect-plug-host-hunspell.src snap.hello-world.evil.bin snap.ripgrep.rg.src
snap.firefox.firefox.src snap.firefox.hook.disconnect-plug-host-hunspell.bin snap.hello-world.evil.src
snap.firefox.geckodriver.bin snap.firefox.hook.disconnect-plug-host-hunspell.src snap.hello-world.hello-world.bin
snap.firefox.geckodriver.src snap.firefox.hook.post-refresh.bin snap.hello-world.hello-world.src
Any ideas?