snapcraft (edge) fails to build core24 snaps. Running "apt update" within base container fails
Metadata
Current evaluation
Edge Snapcraft could not build core24 snaps because apt in the Noble buildd image could not resolve ftpmaster.internal; reproduced and escalated upstream, with no resolution recorded.
Suggested action: keep open
Reason: Maintainer @mr-cal reproduced the failure simply by launching the LXD image, identified the buildd daily Noble image as the source, and escalated it to the cloud images team. The report has clear commands and errors, but the external-image fault has no recorded resolution; its age alone does not justify closure.
Evaluated by: mr-cal-bot
Impact:
48
Quick Win:
15
Complexity:
58
Confidence:
89
Actionability:
72
Issue body
This issue does NOT occur on current latest/stable which is "8.0.3". It happens on latest/edge (8.0.3.post24+git23d55913).
When building core24 based snaps I get following error:
# snapcraft pack
Running snapcraft with a devel instance is for testing purposes only.
craft-providers error: Failed to update apt cache.e from remote
* Command that failed: 'lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v60--d96bc63e95014eca9a88 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 apt-get update'
* Command exit code: 100
* Command output: b"Ign:1 http://ftpmaster.internal/ubuntu noble InRelease\nIgn:2 http://ftpmaster.internal/ubuntu noble-updates InRelease\nIgn:3 http://ftpmaster.internal/ubuntu noble-backports InRelease\nGet:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [90.7 kB]\nIgn:1 http://ftpmaster.internal/ubuntu noble InRelease\nIgn:2 http://ftpmaster.internal/ubuntu noble-updates InRelease\nIgn:3 http://ftpmaster.internal/ubuntu noble-backports InRelease\nIgn:1 http://ftpmaster.internal/ubuntu noble InRelease\nIgn:2 http://ftpmaster.internal/ubuntu noble-updates InRelease\nIgn:3 http://ftpmaster.internal/ubuntu noble-backports InRelease\nErr:1 http://ftpmaster.internal/ubuntu noble InRelease\n Could not resolve 'ftpmaster.internal'\nErr:2 http://ftpmaster.internal/ubuntu noble-updates InRelease\n Could not resolve 'ftpmaster.internal'\nErr:3 http://ftpmaster.internal/ubuntu noble-backports InRelease\n Could not resolve 'ftpmaster.internal'\nFetched 90.7 kB in 7s (12.7 kB/s)\nReading package lists...\n"
* Command standard error output: b"E: Failed to fetch http://ftpmaster.internal/ubuntu/dists/noble/InRelease Could not resolve 'ftpmaster.internal'\nE: Failed to fetch http://ftpmaster.internal/ubuntu/dists/noble-updates/InRelease Could not resolve 'ftpmaster.internal'\nE: Failed to fetch http://ftpmaster.internal/ubuntu/dists/noble-backports/InRelease Could not resolve 'ftpmaster.internal'\nE: Some index files failed to download. They have been ignored, or old ones used instead.\n"
Full execution log: '/root/.local/state/snapcraft/log/snapcraft-20240216-124428.390032.log'
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
48
Quick Win:
15
Complexity:
58
Confidence:
89
Actionability:
72
|
keep open | Edge Snapcraft could not build core24 snaps because apt in the Noble buildd image could not resolve ftpmaster.internal; reproduced and escalated upstream, with no resolution recorded. | |
| stealth/space-bunny-alpha |
Impact:
45
Quick Win:
13
Complexity:
55
Confidence:
72
Actionability:
65
|
keep open | Edge-only core24 build failure: apt-get update in the buildd noble base image cannot resolve ftpmaster.internal. Maintainer reproduced via LXD, blamed the buildd daily image, escalated to the cloud images team. No snapcraft-side fix; still open. | |
| stealth/space-bunny-alpha |
Impact:
64
Quick Win:
29
Complexity:
28
Confidence:
78
Actionability:
63
|
needs triage | Edge-only core24 build failure: base-image apt-get update cannot resolve the baked-in ftpmaster.internal mirror; no project response or direct fix reference. | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
30
Quick Win:
18
Staleness:
95
Complexity:
40
Confidence:
70
Support Request:
20
|
close stale | snapcraft edge fails to build core24 snaps due to apt update failing with unresolved ftpmaster.internal in base container. Issue is 931 days old with no maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
90
Complexity:
45
Confidence:
70
Support Request:
60
|
needs triage | Unlabelled bug report from over two years ago where snapcraft edge fails to build core24 snaps due to DNS resolution failure for an internal apt mirror during container setup. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
40
Confidence:
85
Support Request:
10
|
close stale | snapcraft edge fails to build core24 snaps due to apt update errors in the base container. No maintainer response. Issue is 887 days old. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
35
Confidence:
75
Support Request:
10
|
close stale | Edge snapcraft fails core24 builds due to apt-get update failing inside LXC container. Unlabeled, no maintainer response, inactive for over two years. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4283 Need to build stable kernel snaps with build-base:core24 | snapcraft | closed | Closed as obsolete after core24 became stable; Snapcraft now maps build-base core24 to Noble, removing the pre-release blocker for stable kernel snaps. | |
| #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. | |
| #2051567 Using core24 fails due to change in apt sources | snapcraft (launchpad) | closed | Fixed by snapcore/snapcraft#4551, which bumped craft-providers to 1.22.0; the reporter confirmed the fix on latest/edge. | |
| #1569734 snapcraft kernel: Failed to download 'ubuntu-core/edge' | snapcraft (launchpad) | closed | Store downloading was fixed by merged PR snapcraft#452 (commit f5a1bf971), allowing the kernel plugin to download ubuntu-core/edge successfully. |