snapcraft cleanbuild wants to install multipass but it's already installed
Metadata
Current evaluation
Deb-packaged Snapcraft 2.43.1 failed while Multipass worked in 3.0.1. Legacy cleanbuild was later removed because builds are clean by default.
Resolution: closed stale
Reason: The failure was specific to Debian-packaged Snapcraft 2.43.1; Snapcraft 3.0.1 worked, and a maintainer called the Multipass message a red herring. The final maintainer comment states that legacy cleanbuild was no longer supported because builds were clean by default.
Evaluated by: mr-cal-bot
No scores available.
Issue body
I'm trying to `snapcraft cleanbuild` a snapcraft.yaml with "base: core18" and I'm getting this error:
You need multipass installed to build snaps which use the base keyword.
Would you like to install it now? [y/N]: y
snapd is not logged in, snap install commands will use sudo
multipass (beta) v0.5 from Canonical✓ installed
Channel latest/beta for multipass is closed; temporarily forwarding to beta.
Waiting for multipass...
Launching a VM.
launch failed: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.15.0-43-generic/modules.dep.bin'
modprobe: FATAL: Module msr not found in directory /lib/modules/4.15.0-43-generic
An error occurred when trying to launch the instance with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
Error: not found
Stopping local:snapcraft-weekly-live-moth
An error occurred when trying to copy files using 'lxd': returned exit code 1.
The thing is, I already have multipass installed on my machine.
c@slate:~/Projects/grin$ snap info multipass
name: multipass
summary: Ubuntu at your fingertips
publisher: Canonical✓
license: unset
description: |
Multipass gives you Ubuntu VMs in seconds. Just run `multipass launch` and it'll do all the setup
for you. Check out `multipass find` for a list of available images. More details you can find
under `multipass help`.
commands:
- multipass
- multipass.virsh
services:
multipass.libvirt-bin: simple, enabled, inactive
multipass.multipassd: simple, enabled, active
snap-id: mA11087v6dR3IEcQLgICQVjuvhUUBUKM
tracking: edge
refresh-date: yesterday at 23:57 CST
channels:
stable: –
candidate: –
beta: v0.5 2019-01-22 (587) 111MB classic
edge: v0.5-7-g3901eca 2019-01-29 (590) 111MB classic
installed: v0.5-7-g3901eca (590) 111MB classic
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Deb-packaged Snapcraft 2.43.1 failed while Multipass worked in 3.0.1. Legacy cleanbuild was later removed because builds are clean by default. | |
| stealth/space-bunny-alpha | — | closed stale | The failure was isolated to Debian-packaged Snapcraft 2.43.1; Snapcraft 3.0.1 worked with Multipass. Legacy cleanbuild was later removed as builds became clean by default. | |
| stealth/space-bunny-alpha | — | closed stale | Closed with no documented fix or explanation. The report showed Multipass installed but unable to launch a VM because the host's msr kernel module was unavailable. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. snapcraft cleanbuild incorrectly prompted to reinstall multipass, failing due to a missing kernel module. The issue was abandoned with no fix or discussion. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Likely abandoned or superseded by newer snapcraft and multipass versions that resolved the detection and launch failures. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution, likely abandoned due to inactivity. The reported snapcraft cleanbuild failure with multipass and missing kernel modules remains unfixed, with no comments or workarounds provided. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. Cleanbuild incorrectly prompted for multipass installation and failed due to kernel module errors. Likely abandoned or superseded by updated snapcraft and multipass versions. |
Update history
| Date | Change |
|---|---|
| created |
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. | |
| #1794955 snapcraft erroneously errors when deleting non-existent multipass container | snapcraft (launchpad) | open | snapcraft clean treats an absent Multipass instance as a deletion error after Multipass was reinstalled; the report is concrete but untriaged and may need validation against the current clean path. | |
| #1810915 snapcraft can't tell when multipass is installed but disabled | snapcraft (launchpad) | open | Snapcraft misclassified an installed but disabled Multipass snap as missing, prompting installation before failing. The 2018 report remains untriaged, and its behavior needs validation against the current provider architecture. | |
| #1807125 After snapcraft refresh, old multipass containers no longer work | snapcraft (launchpad) | open | Snapcraft 3.0.1 could reuse incompatible Multipass VMs after a 3.0.0 refresh, causing a misleading missing-project error until snapcraft clean; the report is untriaged. | |
| #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 | |
| #1859427 'multipass' does not exist or is not available on the desired channel 'latest/beta' | snapcraft (launchpad) | closed | Fixed by merged PR snapcore/snapcraft#2869 (commit eb9bd8fbf), changing automatic Multipass installation from latest/beta to stable. | |
| #1829587 snapcraft cleanbuild multipass fails on modprobe msr | snapcraft (launchpad) | closed | Reported 2019: `snapcraft cleanbuild` with base: core18 failed because multipass VM launch tried modprobe msr and hit AppArmor denials. Closed stale in Aug 2023; maintainer noted cleanbuild is obsolete since builds clean transparently. | |
| #1975468 Snapcraft build fails, because multipass cannot download cloudimg | snapcraft (launchpad) | closed | Snapcraft core20 builds were disrupted by Multipass cloud-image download failures; Launchpad closed the report without documenting a fix, resolving PR, commit, or follow-up. | |
| #1869542 snapcraft unable to find snap/snapcraft.yaml file | snapcraft (launchpad) | open | Snapcraft 3.11 on Multipass intermittently lost the project dir in the VM ('Could not find snap/snapcraft.yaml'), only fixable by `snapcraft clean`. Reproducer never supplied; reporter redirected it to the Multipass tracker and never followed up. | |
| #2869 build providers: use multipass from stable | snapcraft | merged | Merged in canonical/snapcraft#2869 (commit eb9bd8fbf), switching build providers to install Multipass 1.0 from the stable channel. |