snapcraft installs ok in an Ubuntu VM on my Mac but fails to build a gadget snap due to multipass failing:
Support for 'multipass' needs to be set up. Would you like to do it now? [y/N]: y
snapd is not logged in, snap install commands will use sudo
multipass 1.15.1 from Canonical✓ installed
Waiting for multipass...
Launching a VM.
launch failed: cannot connect to the multipass socket
An error occurred with the instance when trying to launch with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
Apr 11 09:57:23 ubuntu systemd[1]: Started snap.multipass.multipassd.service - Service for snap application multipass.multipassd.
Apr 11 09:57:23 ubuntu multipassd[45048]: Using AppArmor support
Apr 11 09:57:23 ubuntu multipassd[45048]: Failed to enable AppArmor: AppArmor is not enabled
Apr 11 09:57:23 ubuntu multipassd[45048]: Starting dnsmasq
Apr 11 09:57:23 ubuntu multipassd[45048]: [45085] started: dnsmasq --keep-in-foreground --strict-order --bind-interfaces --pid-file --domain=multipass --local=/multipass/ --except-i>
Apr 11 09:57:23 ubuntu multipassd[45048]:
dnsmasq: directory /etc/resolv.conf for resolv-file is missing, cannot poll
Apr 11 09:57:23 ubuntu dnsmasq[45085]: directory /etc/resolv.conf for resolv-file is missing, cannot poll
Apr 11 09:57:23 ubuntu dnsmasq[45085]: FAILED to start up
Apr 11 09:57:23 ubuntu multipassd[45048]: dnsmasq died: Process returned exit code: 5
Apr 11 09:57:23 ubuntu multipassd[45048]: Caught an unhandled exception: dnsmasq died: Process returned exit code: 5
Apr 11 09:57:23 ubuntu systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Apr 11 09:57:23 ubuntu systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.