Snapcraft tutorial errors out on OSX with multipass error, "returned exit code 2"
Metadata
Current evaluation
macOS Multipass bootstrap hits apt 404s and then mount failures, blocking the tutorial; the host-side CPU-affinity crash has a fallback, but the primary failure remains unconfirmed.
Suggested action: keep open
Reason: The report provides a concrete macOS/core18/Snapcraft 3.8 reproduction with apt 404s followed by a mount failure, and maintainer ~sergiusens explicitly said networking was not fully up and that Snapcraft would improve failure exposure and cleanup. Commit fc9799b26 added a fallback for the secondary os.sched_getaffinity crash, but there is no evidence that the underlying Multipass networking/bootstrap failure was fixed.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
55
Quick Win:
13
Complexity:
62
Confidence:
82
Actionability:
62
|
keep open | macOS Multipass bootstrap hits apt 404s and then mount failures, blocking the tutorial; the host-side CPU-affinity crash has a fallback, but the primary failure remains unconfirmed. | |
| stealth/space-bunny-alpha |
Impact:
58
Quick Win:
18
Complexity:
52
Confidence:
79
Actionability:
64
|
keep open | macOS Multipass bootstrap hits apt 404s, followed by mount failures; Snapcraft clean also crashes on missing os.sched_getaffinity. Maintainer-acknowledged, but the primary failure is not confirmed resolved. | |
| qwen/qwen3.6-35b-a3b |
Impact:
30
Quick Win:
22
Complexity:
20
Confidence:
95
Actionability:
90
|
close resolved | Snapcraft crashes on macOS due to os.sched_getaffinity not being available. Fixed by PR #2963 which adds fallback logic. | |
| qwen/qwen3.8-27b |
Impact:
25
Quick Win:
16
Staleness:
95
Complexity:
35
Confidence:
70
Support Request:
45
|
close stale | Dec 2019 report: snapcraft 3.9 on macOS fails via multipass (apt 404s, mount exit code 2) and crashes with AttributeError on os.sched_getaffinity. No maintainer activity; that code path no longer exists in current snapcraft, and macOS support was dropped. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
25
Confidence:
92
Support Request:
65
|
close stale | Snapcraft tutorial fails on macOS due to multipass errors, EOL Ubuntu Bionic repos, and a Python 3.7 macOS compatibility issue. Issue is over 6 years old with no maintainer interaction. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
25
Confidence:
95
Support Request:
30
|
close stale | Snapcraft tutorial fails on macOS due to Multipass VM errors, outdated Ubuntu Bionic repositories, and Python 3.7 compatibility issues. No activity for over 6 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
15
Confidence:
95
Support Request:
30
|
close stale | Reported snapcraft and multipass failures on macOS with Ubuntu 18.04 (bionic) repositories and Python compatibility errors. Issue is over 6 years old with no maintainer response. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#2963
(confidence 95%)
Commit fc9799b26 adds a multiprocessing.cpu_count fallback when os.sched_getaffinity is unavailable, addressing the secondary snapcraft clean crash on macOS.
-
Related To:
snapcraft (launchpad)#1904774
(confidence 82%)
That Multipass setup failure was addressed by canonical/snapcraft#3381, commit 51e75b4de, which checks whether an instance exists before deleting it; it does not establish that this issue's apt networking failure is resolved.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1806083 snapcraft fails to locate multipass (inside a multipass session) | snapcraft (launchpad) | open | Snapcraft 3.0.1 falsely reported Multipass missing inside a Multipass guest; Darwin-only detection in e9ae8d29f addressed the old path, but the Launchpad record remains open. | |
| #5145 snapcraft fails to launch multipass instance when multipass isn't pre-installed | snapcraft | open | Snapcraft emits cryptic 'Remote "snapcraft" is unknown or unreachable / exit code 2' when Multipass can't launch the build instance; maintainer traced it to image-server unavailability or non-amd64 hosts, fix tracked in craft-providers#211 |