Commit d81ae33
fix: make runtime apt installs resilient to flaky build-time repos
Runtime package installs chained `apt-get update && apt-get install`.
`apt-get update` refreshes every configured source, including the
github-cli and gierens/eza third-party repos that are only needed to
install gh/eza at image-build time but whose source lists linger in the
image. When one of those briefly serves no Release file (deb.gierens.de
did on 2026-07-10), `apt-get update` exits non-zero, the `&&`
short-circuits, and a base-repo package like tmux never installs —
which failed the v1.1.0-rc2 E2E run (setup-editors: "not ok 3.8a tmux
installed") and blocked the release image from publishing.
Add an `apt_install` helper (setup.sh) that lets `apt-get update` fail
soft — the reachable indexes, incl. the Debian base repo, still refresh —
and gates on the install itself. Route the tmux/zsh/fish/build-essential
sites through it, and apply the same fail-soft pattern to the xz-utils/
zstd installs in squarebox-update.sh. tmux install now also returns
non-zero on genuine failure (previously it did not).
Reproduced the exact failure (repo present but no Release file → update
exits 100) in a Debian container: old chain fails rc=100, new pattern
installs tmux rc=0.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e31ffcf commit d81ae33
2 files changed
Lines changed: 29 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
262 | 264 | | |
263 | | - | |
| 265 | + | |
| 266 | + | |
264 | 267 | | |
265 | 268 | | |
266 | | - | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | | - | |
| 272 | + | |
| 273 | + | |
270 | 274 | | |
271 | 275 | | |
272 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
94 | 111 | | |
95 | 112 | | |
96 | 113 | | |
| |||
643 | 660 | | |
644 | 661 | | |
645 | 662 | | |
646 | | - | |
| 663 | + | |
647 | 664 | | |
648 | 665 | | |
649 | 666 | | |
| |||
871 | 888 | | |
872 | 889 | | |
873 | 890 | | |
874 | | - | |
| 891 | + | |
875 | 892 | | |
876 | 893 | | |
877 | 894 | | |
| |||
1382 | 1399 | | |
1383 | 1400 | | |
1384 | 1401 | | |
1385 | | - | |
| 1402 | + | |
1386 | 1403 | | |
1387 | 1404 | | |
1388 | 1405 | | |
| |||
1485 | 1502 | | |
1486 | 1503 | | |
1487 | 1504 | | |
1488 | | - | |
| 1505 | + | |
1489 | 1506 | | |
1490 | 1507 | | |
1491 | 1508 | | |
| |||
0 commit comments