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

Bug #2054099 reported by Martin Kalcok
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Undecided
Callahan Kovacs

Bug Description

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'

summary: - snapcraft (edge) fails to core24 snaps. Running "apt update" within base
- container fails
+ snapcraft (edge) fails to build core24 snaps. Running "apt update"
+ within base container fails
Revision history for this message
Callahan Kovacs (mr-cal) wrote :

I can reproduce this problem just by launching the image with LXD. It appears something has changed in the buildd daily noble image. We've escalated this to the cloud images team.

Thanks for the report!

Changed in snapcraft:
assignee: nobody → Callahan Kovacs (mr-cal)
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.