`charmcraft pack` fails running `apt update`
Metadata
Current evaluation
Closed as out of scope. The failure stemmed from an LXD container networking bug, not charmcraft. No code changes were implemented; users were directed to external LXD and Discourse discussions for troubleshooting.
Suggested action: —
No scores available.
Issue body
Running charmcraft pack is resulting in this error https://paste.ubuntu.com/p/7zDF7XHjGF/
This just started happening the other day. I haven't seen it before yesterday in a demo :)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as out of scope. The failure stemmed from an LXD container networking bug, not charmcraft. No code changes were implemented; users were directed to external LXD and Discourse discussions for troubleshooting. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as out of scope. Root cause identified as a host LXD networking configuration issue, not a charmcraft bug. Redirected to community forums for troubleshooting. No code changes implemented, though improved error messaging was suggested for future releases. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as out of scope. The failure stems from an LXD container networking bug, not Charmcraft. A Discourse post was created for user troubleshooting. No code changes were implemented. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as an LXD networking bug, not a Charmcraft defect. Root cause traced to LXD 4.12 container failures. Resolved by documenting the issue in Discourse and Linux Containers forums, with a suggestion to add user-facing error guidance in Charmcraft. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as out of scope. Root cause identified as an LXD container networking failure. Discourse posts created for user guidance. No code changes merged. Issue closed without charmcraft modifications. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #560 Charmcraft pack is giving error frequently | charmcraft | closed | Charmcraft pack failed due to an apt-get network error installing snapd in an LXD container. Maintainers linked it to a known networking issue. The reporter confirmed a workaround failed. Closed without a code fix, likely abandoned. | |
| #660 `charmcraft pack` fails with error writing to lxd unix socket | charmcraft | closed | charmcraft pack failed due to an LXD socket I/O timeout. The author closed the issue as the error did not recur after a clean rebuild. No code changes were applied. | |
| #647 `charmcraft build` sometimes fails on `apt install` inside the lxd container | charmcraft | closed | Closed as a duplicate of issue #567. The report details intermittent apt-get lock failures during charmcraft build inside LXD containers, suspected to be caused by unattended-upgrades. | |
| #1594 Running `charmcraft pack` fails and returns `Instance setup failed. Check LXD logs for more details` | charmcraft | closed | Closed after the author confirmed uninstalling Docker resolved the conflict. Docker network settings interfered with LXD, causing charmcraft pack instance setup failures. Restarting the system after removal fixed the environment. | |
| #507 charmcraft pack fails for apt-utils is not available | charmcraft | closed | Closed as an environment conflict. Docker interfered with iptables, blocking apt-utils in LXD. The author resolved it by uninstalling Docker, and a maintainer confirmed the networking issue with a workaround. No code changes were made. | |
| #506 Build a charmed failed | charmcraft | closed | charmcraft build failed due to an outdated LXD version lacking project support. Maintainers requested version details. Closed without resolution, likely abandoned, with a request to reopen if the problem persists. | |
| #736 `charmcraft` lxc container starts failing with `FileNotFoundError` during iterative design | charmcraft | closed | Closed without a fix. Maintainer could not reproduce the LXC container corruption causing FileNotFoundError during charmcraft pack on newer versions. Reopen if reproducible on Charmcraft 2.7 or 3. | |
| #1260 Charmcraft hangs or fails with LXD 5.18 | charmcraft | closed | Closed due to an upstream LXD bug. A fix was released for LXD 5.18 compatibility, resolving the hangs and failures. The investigation also uncovered a separate craft-providers issue tracked independently. |