snapcraft trying to install extra package causing conflict
Metadata
Current evaluation
Expired and closed without a fix after 60 days of inactivity; maintainers could not reproduce the conflict and suspected a transient archive state.
Resolution: closed stale
Reason: Launchpad automatically closed the report on 2022-11-15 for 60 days of inactivity. No resolving PR or commit was recorded, and the last maintainer comment reported that dracut installed correctly without dmraid or kpartx-boot.
Evaluated by: mr-cal-bot
No scores available.
Issue body
snapcraft: 7.1.3
Ubuntu: 20.04
snapcraft.yaml
name: my-snap-name
base: core20
version: '0.1'
summary: Test
description: Test
grade: stable
confinement: strict
parts:
my-part:
plugin: nil
build-packages:
- dracut
- dracut-core
Snapcraft will try to install following packages:
binutils binutils-aarch64-linux-gnu binutils-common dmraid dracut dracut-core kpartx-boot libbinutils libctf-nobfd0 libctf0 libdmraid1.0.0.rc16 libdpkg-perl libfile-fcntllock-perl pkg-config
This leads to conflict:
he following packages have unmet dependencies:
kpartx-boot : Depends: initramfs-tools but it is not going to be installed
But apt-get install will try to install:
binutils binutils-aarch64-linux-gnu binutils-common dracut dracut-core libbinutils libctf-nobfd0 libctf0 libdpkg-perl libfile-fcntllock-perl pkg-config
Snapcraft seems to be adding dmraid and kpartx-boot which is causing the conflict.
Interestingly dropping dracut from build-packages does fix the problem.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Expired and closed without a fix after 60 days of inactivity; maintainers could not reproduce the conflict and suspected a transient archive state. | |
| stealth/space-bunny-alpha | — | closed stale | Expired after 60 days without activity; no fix was merged. The maintainer could not reproduce the extra dmraid and kpartx-boot installations. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without explanation or a linked fix after prolonged inactivity; no resolution was recorded for the Snapcraft 7.1.3 dependency conflict (Launchpad #1988858). | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments. Snapcraft incorrectly resolved build dependencies, pulling in conflicting packages like kpartx-boot when dracut was specified. Issue remains abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a tracked fix or comments. The author reported a build dependency conflict caused by snapcraft pulling extra packages. The issue appears abandoned or resolved by the author. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. Snapcraft incorrectly resolves build dependencies, pulling in conflicting packages like dmraid and kpartx-boot alongside dracut, causing apt failures. The bug remains unfixed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without a fix. Snapcraft incorrectly pulled dmraid and kpartx-boot when building with dracut, causing unmet dependency conflicts. The issue received no comments and appears abandoned. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
canonical/craft-parts#1328
(confidence 70%)
The craft-1328 label links the report to this craft-parts issue, but no evidence shows it fixed the conflict.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1597711 snapcraft: self.run() is inconsistent in providing | snapcraft (launchpad) | closed | Closed as expired/stale on 20 February 2017 after 60 days without activity; no fix, documentation update, or superseding change was recorded. | |
| #1666013 Snapcraft reports an error if the executable for a command is provided by a content interface | snapcraft (launchpad) | closed | Snapcraft #1666013 was closed as expired after 60 days of inactivity; no fix or superseding work was recorded. | |
| #1686484 snapcraft fails when two parts have the same file in the stage keyword | snapcraft (launchpad) | closed | Closed as stale in August 2026 after nearly nine years without a fix; the discussion provided no confirmed workaround. | |
| #1867052 Snapcraft crashes while creating snap for ssh-audit | snapcraft (launchpad) | closed | Closed as stale after prolonged inactivity; no Snapcraft PR or commit was cited as resolving the ssh-audit FileNotFoundError. | |
| #1925050 snapcraft status missing information | snapcraft (launchpad) | closed | Closed without a recorded fix, merge, or superseding change after discussion of falling back from architecture-specific revisions to the arch: all revision. | |
| #1558779 Snapcraft 1.1.0 from PPA hangs building 15.04 NetworkManager snap | snapcraft (launchpad) | closed | Closed as stale after 60 days of inactivity. Shallow Git cloning was later made opt-in via source-depth in snapcraft#814 (190463c3c). | |
| #1811208 snapcraft failed to build with cleanbuild on 18.04 | snapcraft (launchpad) | closed | Expired after 60 days without activity; no fix was recorded. A maintainer advised using --destructive-mode because cross-compilation in build environments was unsupported. |