install_java hangs on needrestart prompt on Ubuntu machine images #11

Open
opened 2026-09-26 01:37:48 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-09-26 01:37:48 +00:00 (Migrated from github.com)

install_java hangs on Ubuntu machine images: apt-get triggers needrestart's interactive "Daemons using outdated libraries" dialog, and the job hits the 10-minute no-output limit before Maven runs.

Seen on 2026-09-25 in qbit-user-role-permissions#5, qbit-customizable-table-views#7 and qbit-quick-search#7 (orb 0.5.0; 0.6.5 has the same install_java.sh). qqq works around it with a configure-package-install pre-step (QRun-IO/qqq#635), and qbit-quick-search now copies it:

sudo install -d /etc/needrestart/conf.d
printf '%s\n' '$nrconf{restart} = "l";' | sudo tee /etc/needrestart/conf.d/99-qqq-ci.conf >/dev/null

Fix in the orb: run apt non-interactively in install_java.sh (for example sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get ..., or write the needrestart config first), so each repo can drop the pre-step.

`install_java` hangs on Ubuntu machine images: `apt-get` triggers needrestart's interactive "Daemons using outdated libraries" dialog, and the job hits the 10-minute no-output limit before Maven runs. Seen on 2026-09-25 in qbit-user-role-permissions#5, qbit-customizable-table-views#7 and qbit-quick-search#7 (orb 0.5.0; 0.6.5 has the same `install_java.sh`). qqq works around it with a `configure-package-install` pre-step (QRun-IO/qqq#635), and qbit-quick-search now copies it: ```yaml sudo install -d /etc/needrestart/conf.d printf '%s\n' '$nrconf{restart} = "l";' | sudo tee /etc/needrestart/conf.d/99-qqq-ci.conf >/dev/null ``` Fix in the orb: run apt non-interactively in `install_java.sh` (for example `sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get ...`, or write the needrestart config first), so each repo can drop the pre-step.
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QRun-IO/qqq-orb#11