package-repositories with i386 doesn't enable the arch
Metadata
Current evaluation
Fixed by merged PR canonical/snapcraft#3740: package-repository architectures now run dpkg --add-architecture. Merge commit: 7b848f76d.
Resolution: closed resolved
Reason: PR #3740 added architecture enabling for package repositories and was merged via commit 7b848f76d; implementation commit 7e0403d02 runs dpkg --add-architecture for configured architectures.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Updating the steam snap for core22 and to use package-repositories I discovered that when specifying both i386 and amd64 for a repo, it doesn't actually enable the arch. I was able confirm this by launching the container and running 'dpkg --add-architecture i386'. After enabling the arch, and building again it was able to find the i386 packages.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR canonical/snapcraft#3740: package-repository architectures now run dpkg --add-architecture. Merge commit: 7b848f76d. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR canonical/snapcraft#3740 (7b848f76d), which enables configured package-repository architectures before resolving packages. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged canonical/snapcraft#3740: repository architectures such as i386 are enabled via dpkg --add-architecture (merge 7b848f76d; implementation 7e0403d). | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The package-repositories feature failed to enable the i386 architecture alongside amd64, requiring a manual dpkg workaround. No fix or discussion occurred before closure. | |
| qwen/qwen3.6-35b-a3b | — | — | Specifying i386 and amd64 in package-repositories fails to enable the i386 architecture. The report was closed without resolution, leaving the bug unaddressed. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#3740
(confidence 100%)
The linked PR directly addressed package-repository architectures and resolved the reported i386 behavior.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4289 dpkg --add-architecture fails when using package-repositories | snapcraft | closed | Fixed in craft-archives 1.1.3 via canonical/craft-archives#96 (06b1ca2), reordering dpkg options so --root precedes --add-architecture; rolled out via Snapcraft candidate. | |
| #3740 repo: enable package repository architectures | snapcraft | merged | Merged PR #3740 via merge commit 7b848f76d; implementation 7e0403d runs dpkg --add-architecture for package-repository architectures. | |
| #1989012 package-repositories assumes architecture | snapcraft (launchpad) | open | Snapcraft 7.1.3 injects Architectures: arm64 into an APT source when package-repositories omits architectures; the report is old, untriaged, and may be superseded by later craft-archives handling. | |
| #2009278 Can't mix ports.ubuntu.com and archive.ubuntu.com (building multi-arch snaps) | snapcraft (launchpad) | closed | Resolved in Snapcraft 7.5.2 by globally adding only compatible foreign architectures (amd64+i386, arm64+armhf); the reporter confirmed package-repository refresh now works. | |
| #3322 package repositories: drop $SNAPCRAFT_APT_HOST_ARCH variable | snapcraft | merged | Merged PR #3322 removed support for $SNAPCRAFT_APT_HOST_ARCH before package-repositories stabilization in commit 17da34692. | |
| #1664141 Set arch for build-packages | snapcraft (launchpad) | closed | No code change: i386-qualified build-packages already worked. The separate cleanbuild multiarch failure was moved to snapcraft issue #1664857. | |
| #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. |