buildd base: configure apt to error on fetch failures (CRAFT-344)
Metadata
Current evaluation
Merged #66 (commits 9fd06eb/a56c2bb), configuring APT::Update::Error-Mode="any" so apt update fails on fetch errors instead of silently succeeding.
Resolution: closed resolved
Reason: PR #66 was merged via commit a56c2bb. Its implementation, commit 9fd06eb, adds the APT fetch-error configuration and test coverage.
Evaluated by: mr-cal-bot
No scores available.
Issue body
apt update will return exit code 0 if it fails to fetch updates due to
networking issues. This is problematic because it can silently fail
during use if networking is not available when running update.
Use the option APT::Update::Error-Mode="any" to catch any fetch failures
and exit with error.
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #66 (commits 9fd06eb/a56c2bb), configuring APT::Update::Error-Mode="any" so apt update fails on fetch errors instead of silently succeeding. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Configured apt to exit on fetch failures by setting APT::Update::Error-Mode="any", preventing silent networking failures during builds. Merged. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #109 buildd: disable automatic APT in instance setup | craft-providers | merged | Merged PR #109 disables automatic APT work during BuildBase setup, preventing cache-lock conflicts with explicit APT operations and addressing CRAFT-958. | |
| #3528 apt cache: improve error handling when packages do not have candidates available (CRAFT-136) (CRAFT-218) | snapcraft | merged | Merged #3528, adding missing APT candidate checks and limiting unmarking to relevant packages, preventing crashes when repositories expose no candidate. |