I got hit by the same issue on Ubuntu 21.10 with snapd version 2.54.2+21.10ubuntu1.
Patching the file as described in #1 fixes it for me.
I got hit by the same issue on Ubuntu 21.10 with snapd version 2.54.2+ 21.10ubuntu1.
Patching the file as described in #1 fixes it for me.