← Back to issue list

snapcraft (edge) fails to build core24 snaps. Running "apt update" within base container fails

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2054099
Type
issue
State
open
Author
~martin-kalcok
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action: close stale

Reason: The issue is 931 days old with no maintainer engagement and concerns an old edge version (8.0.3.post24+git23d55913) that is no longer current. Evidence from craft-providers commit history shows related fixes: 'remotes: use released images for noble and oracular (#735)' and 'fix: do not update apt sources for devel images (#504)' which likely addressed the ftpmaster.internal resolution problem by switching to released images instead of devel images with internal mirror references.

Impact: 30 Quick Win: 18.0 Staleness: 95 Complexity: 40 Confidence: 70 Support Request: 20

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
qwen3.6-35b-a3b-mtp-q6
Impact: 30
Quick Win: 18.0
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 30
Confidence: 80
Support Request: 10
close stale Edge snapcraft fails to build core24 snaps due to apt-get update failing to resolve ftpmaster.internal in the LXC base container. Untriaged and inactive for over two years.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/craft-providers#735 (confidence 65%)

    Commit dd365bf changed noble image handling to use released images instead of devel images, which would eliminate the ftpmaster.internal mirror dependency that caused this error.

Related issues

Issue Project State Summary Similarity
#2099923 Snapcraft builds are failing: install of snap "snapcraft" failed snapcraft (launchpad) open Snapcraft builds failing due to outdated snapd (2.61) on build infrastructure unable to install core20 base. Issue is 556 days old with no maintainer response.
79%
#1841618 snapcraft should run apt-get update snapcraft (launchpad) open Feature request (2019) for snapcraft to refresh stale apt-get caches in process containers to avoid build failures. Open ~7 years with zero comments, no labels, no maintainer response; no general cache-refresh logic found in the build path.
74%
#1569734 snapcraft kernel: Failed to download 'ubuntu-core/edge' snapcraft (launchpad) closed Closed without resolution. The kernel plugin failed to download 'ubuntu-core/edge' via the store API in snapcraft 2.7. Zero comments indicate the report was abandoned or closed due to inactivity.
72%
#1583236 snapcraft APT sources checking too strict snapcraft (launchpad) open snapcraft fails builds when APT exits nonzero for non-critical warnings (e.g., outdated hash functions, unsupported PPAs). Unlabelled, zero comments, no maintainer interaction; references obsolete 2015-era sources.
71%