Snapcraft dpkg-query error on multiarch OS
Metadata
Current evaluation
The 2017 multiarch `dpkg -L libc6` build failure was acknowledged, but the affected legacy code has since disappeared; current Snapcraft no longer contains that call.
Suggested action: close stale
Reason: The report concerns a legacy `dpkg -L libc6` call, while the current repository has no such call and history identifies commit ffb164b7a as “chore: remove snapcraft_legacy.” The affected legacy subsystem has been removed, making this old report obsolete unless a current Snapcraft reproducer is supplied.
Evaluated by: mr-cal-bot
Impact:
18
Quick Win:
16
Complexity:
8
Confidence:
92
Actionability:
94
Issue body
When building on a OS with multiarch enabled, and with the i686 and x86_64 versions of libc6 installed, Snapcraft will issue the following error:
dpkg-query: error: --listfiles needs a valid package name but 'libc6' is not: ambiguous package name 'libc6' with more than one installed instance
Use --help for help about querying packages.
Command '['dpkg', '-L', 'libc6']' returned non-zero exit status 2
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
18
Quick Win:
16
Complexity:
8
Confidence:
92
Actionability:
94
|
close stale | The 2017 multiarch `dpkg -L libc6` build failure was acknowledged, but the affected legacy code has since disappeared; current Snapcraft no longer contains that call. | |
| stealth/space-bunny-alpha |
Impact:
48
Quick Win:
27
Complexity:
35
Confidence:
96
Actionability:
88
|
close resolved | Snapcraft's unqualified libc6 query failed with both i386 and amd64 packages installed; multiarch-aware stage-package support was added by commit 298f2fe85 (#1050). | |
| qwen/qwen3.6-35b-a3b |
Impact:
70
Quick Win:
39
Complexity:
30
Confidence:
70
Actionability:
80
|
keep open | Snapcraft fails with dpkg-query error on multiarch OS when libc6 is installed for multiple architectures. Issue is open with no labels or maintainer response. | |
| qwen/qwen3.8-27b |
Impact:
40
Quick Win:
20
Staleness:
95
Complexity:
50
Confidence:
65
Support Request:
10
|
needs triage | Snapcraft fails on multiarch OS with both i686 and x86_64 libc6 installed, as dpkg -L libc6 returns an ambiguous package name error. 9-year-old issue with no maintainer interaction; the dpkg -L call still exists in craft-parts. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
45
Confidence:
85
Support Request:
10
|
close stale | Snapcraft fails with an ambiguous dpkg-query error when libc6 is installed for both i686 and x86_64 architectures on multiarch systems. The issue has seen no maintainer interaction or comments since opening. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
20
Confidence:
90
Support Request:
0
|
close stale | Unaddressed bug report from 9 years ago about a dpkg-query ambiguity error on multiarch OS. Zero maintainer interaction, labels, or comments. Likely obsolete due to significant changes in Snapcraft's build system. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
40
Confidence:
92
Support Request:
10
|
close stale | Report of dpkg-query failing due to ambiguous multiarch libc6 packages during Snapcraft builds. Unaddressed for nearly 9 years with no maintainer interaction. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#ffb164b7a
(confidence 84%)
The legacy subsystem containing the old packaging implementation was removed by this commit; the connection is historical rather than an explicit issue reference.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2099923 Snapcraft builds are failing: install of snap "snapcraft" failed | snapcraft (launchpad) | open | Reported Launchpad Bionic non-i386 builds cannot install Snapcraft 7.x/stable because core20 needs snapd 2.61; the issue remains open, untriaged, and unanswered. | |
| #1907721 Snapcraft broken on ARM64 | snapcraft (launchpad) | closed | Closed as a configuration issue: a system-wide Python package broke apt-installed Snapcraft, while Multipass lacked ARM64 support; maintainers recommended the Snapcraft snap and --use-lxd. | |
| #2015091 snapcraft download debian package from incorrect arch | snapcraft (launchpad) | open | Cross-building for arm64 on amd64 resolved explicitly qualified bsdmainutils:arm64 to an amd64 package; the valid report remains untriaged and a similar bug is still open. | |
| #2592 docker/bin/snapcraft-wrapper: use dpkg for architecture | snapcraft | closed | PR #2592 was closed unmerged after its requested dpkg-based architecture change remained unfinished; the author questioned whether overriding SNAP_ARCH made it unnecessary. | |
| #314 Replace dpkg-architecure calls in tests | snapcraft | merged | PR #314 (sergiusens) merged, replacing tests' direct dpkg-architecture invocations with Snapcraft architecture helpers so the dependency is captured in snapcraft.yaml. Fixes LP bug #1544340. |