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

Cannot build a snap due to this error and tried on two separate machines. Running snapcraft clean doesn’t help, nor does disabling the firewall. Is this is a server problem?

launch failed: Remote “snapcraft” is unknown or unreachable.
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.

The log shows this:

2022-05-23T15:16:21+01:00 multipassd[185256]: Cannot retrieve headers for https://cloud-images.ubuntu.com/buildd/daily/jammy/current/jammy-server-cloudimg-amd64-disk.img: Error transferring https://cloud-images.ubuntu.com/buildd/daily/jammy/current/jammy-server-cloudimg-amd64-disk.img - server replied: Forbidden

2022-05-23T15:16:21+01:00 multipassd[185256]: Could not update manifest: failed to download from ‘https://cloud-images.ubuntu.com/buildd/daily/jammy/current/jammy-server-cloudimg-amd64-disk.img’: Error transferring https://cloud-images.ubuntu.com/buildd/daily/jammy/current/jammy-server-cloudimg-amd64-disk.img - server replied: Forbidden

2 Likes

I was seeing the exact same error for all of yesterday on all my machines. I’ve resorted to using LXD to build for now, which works fine.

2 Likes

This also happens to me after a multipass updated. This workaround didn’t help me see:

This workaround might be of some help.

Thanks this works. Doesn’t this problem break snapcraft for everyone though?

Actually I get the following error using this method when building. It might be specific to me but never saw it before.

/bin/bash: /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found
1 Like