Can't update repositories when building for different arch from host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
New
|
Undecided
|
Unassigned | ||
Snapcraft |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Rnning `snapcraft --use-lxd --build-for=arm64` fails at the package repository update step. Currently (snapcraft rev. 9121) `dpkg` will be used to add a new architecture (when building either in destructive mode or in LXD). For whatever reason, when `apt update` is run the incorrect URL is used for the new architecture (it points to archive.ubuntu.com instead of ports.ubuntu.com).
A simple resolution I've found is making the deb sources in `/etc/apt/
Considering snapcraft already modifies the image by running updates and adding foreign architectures, it seems reasonable to at least make the repositories the image uses a bit more explicit architecture-wise.
The particular lines in question where I think this happens:
https:/
description: | updated |
Changed in snapcraft: | |
status: | New → Confirmed |
Hi Dilyn, thanks for the bug report. Can you provide the snapcraft.yaml that you're using?
I'm suspecting you're using the `package- repositories` keyword.