← Back to issue list

snapcraft failed to build with cleanbuild on 18.04

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1811208
Type
issue
State
closed
Author
~woodrow-shen
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed without resolution. The report details a multipass cleanbuild failure on Ubuntu 18.04 due to a missing msr module error. No fix was implemented, and the discussion was redirected to the Snapcraft forum.

Suggested action:

No scores available.

Issue body

Posted and had some discussions on https://forum.snapcraft.io/t/building-for-core18-multipass-issue/8958 I also encountered the similar the issue when I used snapcraft to create a uc18 gadget for arm64:     $ snapcraft cleanbuild --target-arch=arm64     Setting target machine to 'arm64'     Creating snapcraft-loudly-fresh-mole     Starting snapcraft-loudly-fresh-mole     ...     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) 2018.12.1 from Canonical✓ installed     Channel latest/beta for multipass is closed; temporarily forwarding to beta.     Waiting for multipass...     Setting target machine to 'arm64'     Launching a VM.     launch failed: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.15.0-1030-oem/modules.dep.bin'     modprobe: FATAL: Module msr not found in directory /lib/modules/4.15.0-1030-oem     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-loudly-fresh-mole     An error occurred when trying to copy files using 'lxd': returned exit code 1 I tried to install mulitpass snap on native system, and it did work with launch. However, I'm not sure why reported "msr module missing" during snapcraft. There are some information provided: $ snapcraft --version snapcraft, version 2.43.1+18.4 $ snap --version snap 2.36.3 snapd 2.36.3 series 16 ubuntu 18.04 kernel 4.15.0-1030-oem $ lsmod | grep msr msr 16384 0 $ snap list Name Version Rev Tracking Publisher Notes core 16-2.36.3 6130 stable canonical✓ core gnome-3-26-1604 3.26.0 74 stable/… canonical✓ - gnome-calculator 3.30.1 260 stable/… canonical✓ - gnome-characters 3.30.0 139 stable/… canonical✓ - gnome-logs 3.30.0 45 stable/… canonical✓ - gnome-system-monitor 3.30.0 57 stable/… canonical✓ - gtk-common-themes 0.1-4-g88bc1b2 818 stable/… canonical✓ - hw-probe 1.4-10 153 stable linuxhw - multipass 2018.12.1 572 beta canonical✓ classic ubuntu-image 1.4+snap3 104 stable canonical✓ classic $ multipass launch Launched: full-ribbonfish $ multipass list Name State IPv4 Release full-ribbonfish RUNNING 10.127.219.211 Ubuntu 18.04 LTS $ kvm-ok INFO: /dev/kvm exists KVM acceleration can be used If "cleanbuild" option relies on multipass or lxd, how to deal with this case?

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. The report details a multipass cleanbuild failure on Ubuntu 18.04 due to a missing msr module error. No fix was implemented, and the discussion was redirected to the Snapcraft forum.
qwen/qwen3.6-35b-a3b Closed without resolution or comments. The snapcraft cleanbuild failure on Ubuntu 18.04 caused by multipass VM launch errors was abandoned or superseded by updated build tooling and multipass versions.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution or comments. The reported multipass cleanbuild failure due to a missing msr module on Ubuntu 18.04 was likely abandoned or superseded by newer snapcraft and multipass versions.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1788654 snapcraft cleanbuild doesn't work with cross-compile stage-packages snapcraft (launchpad) closed Closed without resolution. Snapcraft cleanbuild fails during cross-compilation because it does not automatically configure multi-arch package support inside the container. No fix was implemented, and the report appears abandoned.
74%
#1829587 snapcraft cleanbuild multipass fails on modprobe msr snapcraft (launchpad) closed Closed without resolution due to inactivity. The multipass cleanbuild failure caused by a missing msr kernel module was abandoned. No fix was provided.
74%
#1675516 can't cleanbuild snapcraft itself snapcraft (launchpad) closed Closed without resolution or comments, the report of a failed snapcraft cleanbuild due to missing build-packages was abandoned.
74%
#1800119 snapcraft cleanbuild snapcraft (launchpad) closed Closed without resolution. The report details a PermissionError during snapcraft cleanbuild caused by restricted access to the .aptitude directory. With zero comments and no fix applied, the issue was abandoned or marked stale.
73%
#1817288 snapcraft cleanbuild produces incorrect architecture snap snapcraft (launchpad) closed Abandoned and closed without resolution. The legacy mode cleanbuild multi-arch naming bug remains unfixed due to lack of activity and deprecation of legacy mode.
73%
#1615060 snapcraft clean is incomplete snapcraft (launchpad) closed Reporting that snapcraft clean skips local .snap files was closed without comments or resolution, indicating the report was abandoned or left unresolved.
72%
#1746359 snapcraft cleanbuild --debug should provide guidance on build failure snapcraft (launchpad) closed Closed as abandoned due to inactivity. The requested debug shell guidance for snapcraft cleanbuild was never implemented.
72%
#1799925 snapcraft gives conflicting advice for cleaning parts snapcraft (launchpad) closed Closed without a fix. Snapcraft incorrectly advised running snapcraft clean with part and step flags, which were unsupported. The author worked around it with a full clean. The report appears abandoned or superseded by later updates.
72%
#1570706 Snapcraft cleanbuild command doesn't work snapcraft (launchpad) closed Closed without resolution, likely abandoned or superseded. The cleanbuild command failed due to LXC hash format incompatibility and container stop errors.
72%
#1973197 snapcraft 7.x not running override-build snapcraft (launchpad) closed snapcraft 7.x failing to execute override-build was closed without a fix or resolution. Zero comments were posted, indicating the report was abandoned.
72%